Plot equation in Home view (e.g Function plot) using result from CAS view
|
07-19-2019, 02:13 PM
Post: #3
|
|||
|
|||
RE: Plot equation in Home view (e.g Function plot) using result from CAS view
(07-19-2019 07:37 AM)teerasak Wrote: In many cases, I have got analysis result in CAS view with x (lower-case x) as a variable. I then need to draw the graph of this equation in Home view. However, in Home view, it accepts X (upper-case x) as a variable. What I'm doing is to change from x to X manually. F0 through F9 are the global variables for functions to be plotted. You can use these within the CAS environment and define, for example, F1 to be a function to plot. In CAS view, functions take the form similar to: (x)->(x^2+2*x-3). So you can do something like: F1:=x->x^2-4; Notice that the calculator will automatically convert to upper case and return: (X)->(X^2-4). Since the variables of functions are just placeholders, you could really use whatever variable you want. However, the system variables F0 through F9 only accept X as their placeholder variable (hence the auto-conversion). Here's a short example of how you can use this in your calculations: g1:=x^3-4*x^2+2*x-1; g2:=diff(g1,x); F1:=unapply(g2,x); In this example, diff() computes the derivative, and unapply() turns the expression (in this case, g2) into a function whose placeholder variable is 'x'. Since we are saving the result into F1, it will auto-convert for us. Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Plot equation in Home view (e.g Function plot) using result from CAS view - teerasak - 07-19-2019, 07:37 AM
RE: Plot equation in Home view (e.g Function plot) using result from CAS view - toshk - 07-19-2019, 02:11 PM
RE: Plot equation in Home view (e.g Function plot) using result from CAS view - Han - 07-19-2019 02:13 PM
RE: Plot equation in Home view (e.g Function plot) using result from CAS view - victorvbc - 07-19-2019, 09:38 PM
RE: Plot equation in Home view (e.g Function plot) using result from CAS view - toshk - 07-20-2019, 12:25 AM
RE: Plot equation in Home view (e.g Function plot) using result from CAS view - teerasak - 07-21-2019, 03:27 PM
|
User(s) browsing this thread: 1 Guest(s)