Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Octave help: solving equations

  1. Feb 14, 2008 #1


    User Avatar


    First, if somebody can point out a better forum to seek answers concerning the usage of the program Octave, please let me know! :)

    Okay, so I'm trying to solve a relatively simple equation (numerically), foo = ln(4*z)/z, with the foo range known. As far as I know, the only way is to use fsolve? So I try,

    foo = [0:.001:.05];
    for i=1:length(foo);
    z(i) = fsolve("log(4*x)/x-foo(i)", 1);

    and get back an error that fsolve does not know what foo is. Is fsolve the right way to get values for z given foo in the equation above? Does anybody know how to do this?

    Thank you very much,
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted