cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Local var in Int and Sum

ValeryOchkov
24-Ruby IV

Local var in Int and Sum

What is more correct - Mathcad or Maple (SMath)

MathcadMathcad

MapleMaple

6 REPLIES 6


@ValeryOchkov wrote:

What is more correct - Mathcad or Maple (SMath)

 

 


maple

-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!

Summation - Wikipedia

Yes

ValeryOchkov_0-1679025661885.png

 

"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:

add.png

 

Alan

We could write an "add" function for Mathcad to take a range

Werner_E_2-1679053062740.png

 

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

Werner_E_5-1679053126358.png

 

 

 

 

Top Tags