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

Krzysztof Dmytrów ked1908 at gmail.com
Wed Sep 10 14:08:36 CEST 2008


Hi

Yes, I looked at the 'fsolve', but the problem is that my expression
is not just a simple function. It is written as:

function
  y=f(x), y=(x-r)*1/(s*sqrt(0.1534)*sqrt(2*%pi))*exp(-(x-d)^2/(2*0.1534*49))
endfunction

Values of s, d are known. Now I create another function:

function
  z=g(x), z=B-intg(r,infinity,f)
endfunction

B is known.

Now the problem is to find r such that z=0.

I do not know if I can do that using the 'fsolve' function or maybe my
syntax is wrong, but I receive a message that r2 is undefined
variable.

I would be grateful for any help
Krzysiek



More information about the users mailing list