Re: Draw curve by giving a mathematical function (feature request)

Hi Tamás,

Personally, I think this isn't in the domain of SVG.  I think this is
more the domain of a scripting library like JSXGraph:


2010/2/21 Tamás Laiszner <>:
> Hi!
> I think it would be very useful if there were an opportunity to draw a curve
> by giving directly a mathematical (or ECMAScript) function. Maybe the
> ECMAScript Math object could be a good base to implement this. My opinion is
> that it would have some really positive effects. I imagine it like this:
> <funcCoordSystem>
>     <func f="Math.sin(x)" d="(-2 * Math.PI; 2 * Math.PI)" />
>     <func f="Math.cos(x)" d="(-2 * Math.PI; 2 * Math.PI)" />
> </funcCoordSystem>
> This is only a draft to show what I mean exactly. In this example the func
> element has 2 arguments:
> f - the function itself, given by a correct ECMAScript which could be
> interpreted even by using the eval() function
> d - the domain of the function
> (Of course also the funcCoordSystem element representing the coordinate
> system should have some arguments, for example the coordinates of the
> origin, minX, maxX, minY, maxY values.)
> Thanks,
> Tamás Laiszner

Received on Monday, 22 February 2010 15:02:34 UTC