[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Plot oddity?
From: |
John B. Thoo |
Subject: |
Plot oddity? |
Date: |
Sun, 5 Feb 2006 13:12:54 -0800 |
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
-------------------------------------------------------------
- Plot oddity?,
John B. Thoo <=