Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline omorr  
#1 Posted : 04 July 2016 16:06:19(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
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!"

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 04 July 2016 17:55:43(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,654
Man
Italy
Location: Italy

Was thanked: 1340 time(s) in 879 post(s)
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).

Edited by user 04 July 2016 19:03:39(UTC)  | Reason: typo

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#3 Posted : 04 July 2016 20:23:22(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
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

Offline Razonar  
#4 Posted : 04 July 2016 21:49:30(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,368
Uruguay

Was thanked: 829 time(s) in 525 post(s)
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...t_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.
Offline Jean Giraud  
#5 Posted : 05 July 2016 05:40:00(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
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
Offline Jean Giraud  
#6 Posted : 05 July 2016 15:49:17(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
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

thanks 1 user thanked Jean Giraud for this useful post.
on 05/07/2016(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.