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

    ayu

    User Avatar

    Hello,

    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);
    end;

    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,
    Ayu
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Octave help: solving equations
Loading...