Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Variable Coefficients' topicStudent Support Forum > General > Archives > "Variable Coefficients"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Daniel Z-S
09/30/10 12:01pm

Do you mean that x0 and x12 are lists? In that case the syntax for getting the k-th element of a list x is x[[k]].

x[k] would be interpreted as the value of the function x with k as parameter. You could use this to your advantage by specifying the function of how you want k to change:

x[k_]:=k+Exp[k] or whatever.

Then x would certainly be able to change with k! the _ after k specifies it as a variable, it is not used on the right hand side.

URL: ,

Subject (listing for 'Variable Coefficients')
Author Date Posted
Variable Coefficients Alex Z 09/28/10 1:54pm
Re: Variable Coefficients Daniel Z-S 09/30/10 12:01pm
Re: Variable Coefficients Toen 10/02/10 08:19am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic