[scilab-Users] How to find root of a function

Krzysztof Dmytrów ked1908 at gmail.com
Thu Sep 11 12:22:53 CEST 2008


> In 'f', the variable 'r' is effectively unknown. In 'f', you use symbols
> 'x', 'r', 's' and 'd'. 'x' is given as an argument.
> Also, if 's' and 'd' are parameters you should use the 'global' keyword.

Thank you for your help, but I managed to solve the problem myself.
The second function was the function of 'r', not 'x'.

> It also seems that in f, you have unbalanced parenthesis (or you use a
> strange way of writing rational ;). In 'g', the constant for infinity is
> %inf...

Well, I did not actually write 'infinity', but some large enough value
to make it a little faster.

Now everything works perfectly :).

Thank you again
Krzysiek



More information about the users mailing list