Problem of summation-mathematica

  • Context: Mathematica 
  • Thread starter Thread starter shafieza_garl
  • Start date Start date
Click For Summary

Discussion Overview

The discussion focuses on differentiating a summation in Mathematica with respect to specific parameters, as well as handling parameter substitution in the context of a summation. Participants explore how to automate the input of parameters when the variable Y increases.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant seeks assistance in differentiating a complex summation equation with respect to the parameters m_i.
  • Another participant provides an example of differentiation using a specific value for Y and demonstrates how to differentiate the summation.
  • A participant questions the purpose of the ReplaceAll function in Mathematica and seeks clarification on how to input parameters like m_1 and m_2 when they have assigned values.
  • A response explains the ReplaceAll function and its role in substituting variables with values in expressions, while also addressing a participant's confusion regarding variables that already have values.

Areas of Agreement / Disagreement

The discussion contains multiple viewpoints regarding the use of Mathematica functions and the handling of parameters, with no consensus reached on the best approach for substituting parameters or differentiating the summation.

Contextual Notes

Participants express uncertainty about the implications of variable substitution when parameters have assigned values, indicating a potential misunderstanding of variable states in Mathematica.

shafieza_garl
Messages
20
Reaction score
0
MATHEMATICA:differentiate the summation

I need help.im having problem to differentiate my equation respect to the m_i;How can i differentiate the equation.
Second question is;When i set Y=2;how can i put the parameter like m_1;m_2;S_1;S_2;
what i just do is input it manually by changing m_1=m1;m_2=m2;
its very difficult if Y become larger number
Code:
Sum[(Subscript[\[Sigma], i] - Subscript[c, i])*(Subscript[q, i]/
          Subscript[T, i]), {i, 1, Y}] - 
   Sum[((1 - \[Beta])/(2 - \[Beta]))*(Subscript[d, i]*
      Subscript[q, i]) + 
       (1/2)*((Subscript[m, i] - 1)*Subscript[w, i]*Subscript[q, i]) + 
       (Subscript[A, i]/Subscript[m, i] + Subscript[S, i])/
         Subscript[T, i], {i, 1, Y}]
Thanx for da help
 

Attachments

Last edited:
Physics news on Phys.org
Y=2;
s=Sum[...];
d=D[s,Subscript[m,1]];
d/.Subscript[m,1]->4
 
Thanx a a lot for da help.but what is da function of
Code:
 d /. Subscript[m, 1] -> 4
and do you know how can input the subscript like m_1 and m_2 if they have value ?
 
expression/.variable->value
is an alternate way of writing the ReplaceAll function.
That function replaces all variable with value in expression.
Here is the documentation for ReplaceAll.
http://reference.wolfram.com/mathematica/ref/ReplaceAll.html
If you look at the value of the variable d in my code and compare that
with the value after the ReplaceAll you can see what it has done.

I am not certain I understand what you mean "if they have value."
If they have value then they are not a variable in your expression
and there is no variable to replace with a value.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K