Hi,

AP wrote:

> Here is some of my code...
> 
> 
> 
> prin y: load ask ["What is your function? >>  y = "]
> 
> yfunc: func [x] [y]
> 
> 
> 
> I enter   [2 * x + 1]
> 
> 
> Later code....
> 
> for x xmin xmax step [
> 
>    print [x " " yfunc x]
> 
> ]
> 
> Then  I get as output
> 
> 0   2 * x + 1
> 5   2 * x + 1
> 10 ...
> 
> yfunc is not evaluating.
> 
[snip]
> 
> I'm stuck.
> 

you were almost there... Try these changes:

probe y: load ask ["What is your function? >>  y = "]

yfunc: func [x] y

etc...

Regards,
    Ladislav

Reply via email to