Message Boards Message Boards

0
|
3946 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

One question with Manipulate function

Posted 10 years ago
Attachments:
POSTED BY: Hosam Hefnawy
3 Replies
Posted 10 years ago
POSTED BY: Hosam Hefnawy

After reading more carefully about the subscripted terms, something like the following?

(* Mathematica 7 *)
f[n_] :=  Sum[ Subscript[a, j], {j, 0, n}](*Define the function*)
Manipulate[ f[n], {n, 0, 4, 1}, ControlType -> RadioButton]
POSTED BY: Isaac Abraham

Something like this?

(* Mathematica 7 *)
f[x_] := 1 + 2 x + 3 x^2 + 4 x^4 (*Define the function*)

Manipulate[ 
 Take[f[x], n](*Take n terms*)/. x -> m (*replacing x with some value m*), {n, 1, 4, 1}, {m, 1, 3, 1}, 
 SaveDefinitions -> True,
 ControlType     -> RadioButton ]
POSTED BY: Isaac Abraham
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract