If I want to plot Y against X, for eaxmple
s=sin(x)*cos(x*x)*tan(2*x)
y=sin(s*s+s*x+s^2)
I don't want to type sin(x)*cos(x*x)*tan(2*x) for each s in y. How do I do that? So basically, I am asking if Dplot support automatic variable substitution (in this case replace every s in y with sin(x)*cos(x*x)*tan(2*x)).
Thanks.
A simple 2D plot question
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
You can't do it in one step (w/o the substitution you already mentioned). The easiest way to do this is using Generate>Y=f(X), then Edit>Operate on Y.
Y=f(X):
Y=sin(x)*cos(x*x)*tan(2*x)
Operate on Y:
Y=sin(y*y+y*x+y^2)
But no matter how you do this, you're going to get some instabilities at x=pi/4, 3*pi/4, 5*pi/4, etc. - which I'd guess you already know.
Y=f(X):
Y=sin(x)*cos(x*x)*tan(2*x)
Operate on Y:
Y=sin(y*y+y*x+y^2)
But no matter how you do this, you're going to get some instabilities at x=pi/4, 3*pi/4, 5*pi/4, etc. - which I'd guess you already know.
Visualize Your Data
support@dplot.com
support@dplot.com