Zero to the Zero Power?

Zero to the Zero Power? - ?why not 1? - Messages

#1 Posted: 7/4/2016 10:06:19 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

As one can see, zero to the zero power (0^0) in SMath will give you an error - Uncertainty.
I am just wondering why it is not accepted to be one (1) ?. I think it might be more useful to be 1 than to rise an error.

Any comments?

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#2 Posted: 7/4/2016 11:55:43 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

It is an interesting question Radovan.

Seems there isn't a uniform convention: Wolframalpha returns undefined, while Phyton, SciLab and Octave they returns 1. Also in spreadsheets most of the programs returns 1, some the #NUM error. No one of the programs in my knowledge returns 0.

In one hand the error leave the users more control over this problem (you can trap it using the try function or can be avoided if you know in advance that such issue might happens, using if/else statement on the base/exponent arguments calculated separately), in the other hand 1 might be more "productive" (but I guess in some case might represent a source of errors if you don't know what you are doing with your math; however this convention is accepted in many programs, so doesn't seems a big stop).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 7/4/2016 2:23:22 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

0^0=1 is conventionalised in Mathcad, not in Smath.
Numerically, 0 is a variable. In the expansion, it first calculates ln(0)
which is undefined [uncertain]. Consequently, exp(0*ln(0))is undefined
or uncertain. On the other hand, 0^1=0 is a damned big bug in Smath.

Jean

Forum Zero Power zero.gif

#4 Posted: 7/4/2016 3:49:30 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi.

There are 7 indeterminate form. All can be reduced to the forms 0/0 or inf/inf, as is showing in this table: https://en.wikipedia.org/wiki/Indeterminate_form#List_of_indeterminate_forms . As SMath have now try ... catch function, I guess that the best is take as error all of them.

Best regards.

Alvaro.
#5 Posted: 7/4/2016 11:40:00 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

L'Hospital is for bed time reading outside the classroom .
In CAS, we need CAS values, i.e: numerical values.
It's up to each system to be educated or voluntarily ignorant.

Jean

Forum Numerical Values.gif
#6 Posted: 7/5/2016 9:49:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

In those "uncertainties", Smath report its own uncertainties.
That's not what you want in Classroom or Engineering.
Rather, you want this, that Smath should have by recognition:

Numerical CAS Values.gif

1 users liked this post
Radovan Omorjan 7/5/2016 11:00:00 AM
  • New Posts New Posts
  • No New Posts No New Posts