The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Wolfram Alpha != HP Prime CAS result: who is wrong?
06-04-2024, 01:08 AM (This post was last modified: 06-04-2024 01:56 AM by robve.)
Post: #1
Wolfram Alpha != HP Prime CAS result: who is wrong?
On Wolfram Alpha:
\( \sum_{k=0}^n k=\frac12n(n+1) \)
but it also says that:
\( \sum_{k=0}^{-10} k=0 \)
which surprised me, because the sign of \( n \) should not matter. What am I doing wrong here?

HP Prime CAS:
\( \sum_{k=0}^{-10}k=45 \)
which checks out \( \frac12(-10)(-10+1)=45 \)

So Wolfram Alpha thinks that \( \sum_{k=0}^{-10}k=0 \) is a so-called zero-trip loop? s=0; for (k=0; k<-10; ++k) s += k;

A couple of years ago, I spoke with a founder of Maple at a conference about similar problems and differences with program code as we were translating algebraic formulas in Prolog notation to FORTRAN to implement and run numerical solutions, and we knew these things can bite you. Their explanations of algebraic identities made sense back then and still do.

- Rob

"I count on old friends to remain rational"
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Wolfram Alpha != HP Prime CAS result: who is wrong? - robve - 06-04-2024 01:08 AM



User(s) browsing this thread: 7 Guest(s)