Maple Why can't Maple simplify this further?

  • Thread starter Thread starter ztdep
  • Start date Start date
  • Tags Tags
    Maple Simplify
Click For Summary
SUMMARY

The discussion centers on the inability of Maple to simplify the expression (√π - √π) to zero. Participants highlight that Maple treats the two instances of π as separate variables, which can lead to confusion. The principal square root convention dictates that √π is positive, yet the software's handling of the expression does not yield a simplification to zero. Users are advised to use 'Pi' instead of 'pi' to ensure consistency in calculations, as supported by Maple's documentation.

PREREQUISITES
  • Understanding of mathematical conventions regarding square roots
  • Familiarity with Maple software and its syntax
  • Knowledge of variable handling in programming languages
  • Basic algebraic principles, including the properties of real numbers
NEXT STEPS
  • Explore Maple's documentation on initial constants and variable definitions
  • Learn about the implications of using different variable names in mathematical software
  • Investigate how to handle square roots and branches in Maple
  • Experiment with Maple's simplification functions to understand their behavior
USEFUL FOR

Mathematicians, educators, students using Maple for symbolic computation, and anyone interested in understanding variable handling in mathematical software.

ztdep
Messages
11
Reaction score
0
I am evaluating this formula, it's real value is 0. but maple can't further simplify it?

2022-09-15_8-04-45.png
 
Physics news on Phys.org
Probably because (√π - √π ) isn't necessarily zero. It depends which of the two square roots you take. If you force it to take the positive square roots, then it will be zero.
 
  • Like
  • Skeptical
Likes SolarisOne, PeroK, Wrichik Basu and 1 other person
How can (√π - √π) not be zero? We are not solving a quadratic equation here, so ##\sqrt{\pi} > 0##.
 
DrClaude said:
How can (√π - √π) not be zero?

If you select a branch at random each time you write a \sqrt{}.

It may be that Maple thinks that each \pi is a separate variable, whose values are not necessarily equal.
 
phyzguy said:
Probably because (√π - √π ) isn't necessarily zero. It depends which of the two square roots you take.

DrClaude said:
How can (√π - √π) not be zero? We are not solving a quadratic equation here, so ##\sqrt π>0##.
To elaborate on @DrClaude's comment, the square root of a positive real number is by convention the principal square root of that number. i.e., the positive square root.

Although the equation ##x^2 - 4 = 0## has two solutions -- x = 2 or x = -2, it is an error to say that ##\sqrt 4 = \pm 2##.
 
  • Like
Likes PeroK
ztdep said:
I am evaluating this formula, it's real value is 0. but maple can't further simplify it?
Try entering Pi instead of pi.
For Maple, the first one is the famous mathematical constant, the second one is an undefined variable.
 
  • Informative
  • Like
Likes I like Serena, PeroK and berkeman
Mark44 said:
To elaborate on @DrClaude's comment, the square root of a positive real number is by convention the principal square root of that number. i.e., the positive square root.

Although the equation ##x^2 - 4 = 0## has two solutions -- x = 2 or x = -2, it is an error to say that ##\sqrt 4 = \pm 2##.
Conventions are one thing, but what's coded up in the Maple code is another. What's your explanation for why it didn't replace (√π - √π ) in equation 4 of the OP with 0?
 
phyzguy said:
Conventions are one thing, but what's coded up in the Maple code is another.
##\sqrt \pi## in Maple must be a positive number. I'd be very surprised if something as basic as that was coded wrongly.
 
Maybe try to actually run it through Maple with reference to post #6.
It is a triviality, nothing else. And it certainly does not have anything to do with branches of square roots.
 
  • #10
phyzguy said:
Conventions are one thing, but what's coded up in the Maple code is another. What's your explanation for why it didn't replace (√π - √π ) in equation 4 of the OP with 0?
No idea, but I'm also puzzled why Maple added two expressions whose denominators were both ##\sqrt \pi x^2## to get a single expression with a denominator of ##\sqrt \pi x^2 \sqrt \pi##.

However, I think @S.G. Janssens has hit the nail on the head with his advice to use Pi rather than pi. The Maple documentation backs up this advice - https://www.maplesoft.com/support/help/maple/view.aspx?path=initialconstants.
 

Similar threads

Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K