Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
What is more correct - Mathcad or Maple (SMath)
-4949 is correct too?
@ValeryOchkov wrote:
-4949 is correct too?
No! Here all these programs are not following the math definition of a sum.
There is a difference between a programmers loop and the sum symbol in mathematics.
In mathematics when the upper value is lower than the "start" value its called the "empty sum" and its value is zero!
Yes
"In mathematics when the upper value is lower than the "start" value its called the "empty sum" and its value is zero!"
This is exactly what Maple's add command does:
Alan
We could write an "add" function for Mathcad to take a range
BTW, is there an easier way to decide if the range is "reversed" (first value larger than the last)?
Of course the Maple command "add" is much more versatile which cannot achieved in Mathcad per user-defined function.
But we could implement the recursive definition of a sum of expressions quite easily