| bio | website | jeremybejarano.wordpress.com |
|---|---|---|
| location | Provo, UT | |
| age | ||
| visits | member for | 3 months |
| seen | Apr 23 at 9:59 | |
| stats | profile views | 0 |
|
Feb 21 |
comment |
Manipulate and Turning Expressions into Functions So, to be sure I understand, \[FormalA] can never be assigned a value and so it works. \[Alpha] and the like, however, are not write protected in the same way that a and b are not protected, but still works. What is different, then, about \[Alpha] and \[Beta] that makes this work? Are they something in between regular a and \[FormalA]? |
|
Feb 21 |
comment |
Manipulate and Turning Expressions into Functions Very elegant. Thanks! |
|
Feb 21 |
accepted | Manipulate and Turning Expressions into Functions |
|
Feb 21 |
comment |
Manipulate and Turning Expressions into Functions Thanks for the answer. The problem that I am running into, however, is that I have an expression that I would like to plot saved somewhere that is not already a function proper. So, for example, I have the following, both of which do not work. Clear["`*"] someExpression = Sin[a x + b]; func[x_, a_, b_] := someExpression Manipulate[Plot[func[x, a, b], {x, 0, 6}], {a, 1, 4}, {b, 0, 10}] Clear[func] func[x_, a_, b_] := Function[{x, a, b}, someExpression][x, a, b] Manipulate[Plot[func[x, a, b], {x, 0, 6}], {a, 1, 4}, {b, 0, 10}] |
|
Feb 21 |
awarded | Editor |
|
Feb 21 |
comment |
Manipulate and Turning Expressions into Functions Thanks for the catch. I revised the question. |
|
Feb 21 |
revised |
Manipulate and Turning Expressions into Functions revised question |
|
Feb 21 |
asked | Manipulate and Turning Expressions into Functions |
|
Feb 20 |
awarded | Scholar |
|
Feb 20 |
awarded | Supporter |
|
Feb 20 |
accepted | Piping and Replacement |
|
Feb 15 |
awarded | Informed |
|
Feb 15 |
comment |
Piping and Replacement Thanks for the help. It was very useful! |
|
Feb 15 |
awarded | Student |
|
Feb 15 |
asked | Piping and Replacement |