help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plotting even function


From: Geraint Paul Bevan
Subject: Re: plotting even function
Date: Sun, 20 Mar 2005 01:20:59 +0000
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John B. Thoo wrote:
| Hi.  I hope that I'm not embarrassing myself by asking the following.
|
| I believe that
|
|        3       2/3    1
|   y = --- (2 x)    + ---
|        4              2
|
| is an even function, yet
|
| x = -1:0.04:1;
| plot (x, 0.75 * (2 .* x).^(2 / 3) + 0.5)
|
| is not symmetrical about the y-axis.  What is wrong with my thinking?
|
| TIA.
| ---John.


x^(2/3) is not an even function,

octave:1> [ (+8)^(2/3) ; (-8)^(2/3) ]
ans =

~    4.0000 + 0.0000i
~   -2.0000 + 3.4641i

so nor is the function which you are plotting.

- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkI8z/sACgkQcXV3N50QmNOi1QCdEvZ44CO0bbl0h+TQvgFpD9uy
YQgAn2a4A1x4m7ZdST8vG9IBRgBu1lCW
=7F+W
-----END PGP SIGNATURE-----



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]