Mathematica Asked on July 7, 2021
I wrote the following:
$Assumptions = {nAvg >= 0};
Simplify[Im[1/(8 nAvg)]]
And Mathematica returns me: 1/8 Im[1/nAvg]
Why doesn’t it simply returns me $0$ ?
$Assumptions = {nAvg > 0};
Simplify[Im[1/(8 nAvg)]]
$Assumptions = nAvg ∈ PositiveReals;
Simplify[Im[1/(8 nAvg)]]
Maybe when nAvg==0
,1/(8 nAvg)
will return Complex Infinity.
Other way such as
ComplexExpand[Im[1/(8 nAvg)]]
ComplexExpand[Re[1/(8 nAvg)]]
ComplexExpand[ReIm[1/(8 nAvg)]]
work since ComplexExpand
assume all the variables is in Reals
.
Answered by cvgmt on July 7, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP