Re: plotting function

Giovanni Piredda <[email protected]> Sun, 29 Dec 2024 11:42:43 +0000
Newsgroups gmane.editors.texmacs.user
Message-ID <[email protected]>
On 29/12/24 01:51, vincent douce wrote:
> hey Giovanni thanks
> wonderful…
> (except that : how to plot the axis ?

I do it by drawing the axes, helping myself with the grid (there is an 
option on the ribbon to show or hide the grid).

> plot any function ?)
> the problem is i can not copypaste to TeXmacs because the code is only 
> the list of the points, nothing automatic (see screenshot)

define the function as a lambda expression :-)

($graph2d -3 3 100 (lambda (x) (expt x 2)))

I agree that it is more difficult than it should be. There is the thread 
http://forum.texmacs.cn/t/reading-infix-notation-to-scheme/447 which I 
had forgotten about and shows some ways of using infix notation; it may 
be that it needs some work yet.