|
From: | John B. Thoo |
Subject: | Re: Plot oddity? |
Date: | Sun, 5 Feb 2006 13:34:00 -0800 |
Thanks. And I apologize for taking up band-width unnecessarily, especially on Super Bowl Sunday.
Sincerely, ---John. On Feb 5, 2006, at 1:12 PM, John B. Thoo wrote:
Hello, all. I am using Octave 2.1.46 with X11 on Mac OS X 10.3.9. Why don't I get identical plots in the following?############### begin ################# # Specify values of N, alpha, and beta N = 3; alpha = 0.1; beta = 1; a = -2; b = 2; # x-range [a, b] c = -2; d = 2; # y-range [c, d] clearplot axis ([a, b, c, d], "square"); # plot window gset nokey hold on x = a:0.01:b;plot (x, x.^(2 .* N - 1) - beta .* (abs (x)).^N ./ x + x ./ N - alpha ./ N) plot (x, x.^(2 .* N) - beta .* (abs (x)).^N + x.^2 ./ N - (alpha ./ N) .* x)hold off ############### end ################# Is it my algebra? Which plot is correct? TIA. Sincerely, ---John.
------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |