AngouriMath
TryReadSineCosinePowers
Method with 2 overloads
TryReadSineCosinePowers(AngouriMath.Entity,AngouriMath.Entity@,PeterO.Numbers.ERational@,PeterO.Numbers.ERational@,AngouriMath.Entity@,System.Boolean@)
Summary
TryReadSineCosinePowers(AngouriMath.Entity,AngouriMath.Entity@,PeterO.Numbers.ERational@,PeterO.Numbers.ERational@,AngouriMath.Entity@),
and whether a fractional power of a product was read as the product of the powers:
true only up to a constant on each interval where the factors keep their signs.
TryReadSineCosinePowers(AngouriMath.Entity,AngouriMath.Entity@,PeterO.Numbers.ERational@,PeterO.Numbers.ERational@,AngouriMath.Entity@)
Summary
Readsexpr as a rational multiple ofsin(u)^p cos(u)^q over
one common argument, however the six trigonometric functions spell it.
Remarks
A tangent contributes(+1, -1) , a secant(0, -1) , a cosecant
(-1, 0) and a cotangent(-1, +1) , so a product of any of them over one
argument is a pair of integers. Anything else in the product — a second argument, a
non-integer power, a function of the variable that is not one of the six — makes the
whole read fail, because a rule that guesses at the part it did not recognise answers
a question it was not asked.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online