[Maxima] simple for wxplot2d rad_cubic and other odd- exp

Luigi Marino luigi_marino2 at alice.it
Mon May 11 03:44:17 CDT 2009


Problems with exponential function x^(1/3)  - x^(2/3) - ecc. 

If you try to plot function as x^(1/3) , x^2-3*x^(2/3)
wxplot2d plots are wrong (it plots only positive-parts).
This my simplest or simple block correct the exponential
function and so wxplot2d and other in Maxima works fine.

rad(n,x):= block(
rad1(n,x):=float(exp(1/n*log(x))),
rad2(n,x):=float(-exp(1/n*log(-x))),
if x>0 then rad1(n,x)
else rad2(n,x))$

Usage:

x^(1/3)-> rad(3,x)
x^(2/3)-> rad(3,x^2)

I hope that it is useful to someone.

Luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.math.utexas.edu/pipermail/maxima/attachments/20090511/73e5b780/attachment-0001.htm 


More information about the Maxima mailing list