Re: Custom Function Definitions
Ivan Johansen <graph <at> padowan.dk>
2008-06-02 06:26:08 GMT
John W. Williams wrote:
> It does not seem possible to define custom parametric functions: I
> would like to be able to define someting like:
>
> circ[h,k,r]
>
> with
>
> x(t) = h+r*cos(t)
> y(t) = k + r*sin(t)
You will have to create it as two custom functions:
circ_x(h,r,t) = h+r*cos(t)
circ_y(k,r,t) = k+r*sin(t)
Now you can plot the parametric function as:
x(t)=circ_x(2,5,t)
y(t)=circ_y(3,5,t)
Alternatively you can create the custom function as:
circ(h,k,r,x,y) = (x-h)^2 + (y-k)^2 - r^2
Then you can plot the circle as the relation:
circ(2,3,5,x,y) = 0
> Or would you consider a special dialog for entering the parameters to
> draw conics?
This should be possible with the new plugin system in Graph 4.4 when I
get it finished.
Best regards
Ivan Johansen
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/