Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 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!" |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 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 |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,368 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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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:
|
1 user thanked Jean Giraud for this useful post.
|
|
|
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.