Is there a way for the solve app to use exact figures?
|
10-22-2020, 07:19 PM
(This post was last modified: 10-22-2020 07:34 PM by Albert Chan.)
Post: #5
|
|||
|
|||
RE: Is there a way for the solve app to use exact figures?
Knowing the limitation of proot and exact, we can use it to get exact results.
But, it required confirmations. Example: find roots of x^2 + (1+i)*x + (3-i) = 0 XCas> [r1, r2] := proot([1, 1+i, 3-i]) → [-0.920774266234-2.28242839495*i , -0.0792257337659+1.28242839495*i] Quadratic roots should have a form of c ± √d = (r1+r2)/2 ± √((r1-r2)/2)² We use the "inexact" nature of exact, to our advantage. (If results look messy, we can use the even more "inexact" version, float2rational) XCas> c := exact((r1+r2)/2) → -1/(1-i) = -1/2-i/2 XCas> d := exact(((r1-r2)/2)^2) → (-6+3i)/2 = -3+3i/2 Confimation steps: XCas> simplify(-2*c) → 1+i, matching linear coefficient. XCas> simplify(c*c-d) → 3-i, matching constant term. → x roots = c ± √d = (-1/2-i/2) ± √(-3+3i/2) For quadratics, this is stupid. We get faster results applying quadratic formula. But, it is useful for simplifying cubics and beyond. Example: ³√(1859814842094 - 59687820010√415) = 11589 - 145√415 RHS (actually, just 11589) was originally a guess. Then we confirm it. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Is there a way for the solve app to use exact figures? - Lord_Spooglypuff - 10-22-2020, 03:03 AM
RE: Is there a way for the solve app to use exact figures? - Stevetuc - 10-22-2020, 04:11 AM
RE: Is there a way for the solve app to use exact figures? - Albert Chan - 10-22-2020, 04:36 PM
RE: Is there a way for the solve app to use exact figures? - Stevetuc - 10-22-2020, 05:47 PM
RE: Is there a way for the solve app to use exact figures? - cdmackay - 10-25-2020, 09:27 PM
RE: Is there a way for the solve app to use exact figures? - Albert Chan - 10-22-2020 07:19 PM
RE: Is there a way for the solve app to use exact figures? - pinkman - 10-22-2020, 07:43 PM
|
User(s) browsing this thread: 1 Guest(s)