cannot solve simple equation
|
11-23-2023, 03:22 AM
Post: #1
|
|||
|
|||
cannot solve simple equation
I just got an HP Prime and was trying out its CAS function. I came across a question on special relativity and wanted to try it out.
Please help me out! Peter |
|||
11-23-2023, 01:44 PM
Post: #2
|
|||
|
|||
RE: cannot solve simple equation | |||
11-23-2023, 04:04 PM
(This post was last modified: 11-23-2023 04:15 PM by Albert Chan.)
Post: #3
|
|||
|
|||
RE: cannot solve simple equation
Error screen already gives all the information you need.
v = tan(t) , t=-1.57 .. 1.57 tan(1.57) ≈ 1256., v guess (unit m/s) too low to have measurable relativistic effect Let x = v/c, where c = 3e8 > solve(4.1 = 2.6/sqrt(1-x*x), x) → {−0.773213048007, 0.773213048007} Iterative solve: 4.1/2.6 about sqrt(2) → x about 0.75 > solve(4.1 = 2.6/sqrt(1-x*x), x=0.75) → 0.773213048007 Bisection solve: > solve(4.1 = 2.6/sqrt(1-x*x), x=0.6 .. 0.9) → [0.773213048007] |
|||
11-23-2023, 05:30 PM
(This post was last modified: 11-23-2023 05:31 PM by C.Ret.)
Post: #4
|
|||
|
|||
RE: cannot solve simple equation
(11-23-2023 03:22 AM)Peter C Wrote: I just got an HP Prime and was trying out its CAS function. I came across a question on special relativity and wanted to try it out. Hi Peter ! Apparently, you didn't get your Hp Prime from Officer Montgomery "Scotty" Scott (retired chief engineer responsible for the propulsion of the starship Enterprise). With your new calculator, you have to give from her all she's got, Peter!. You cannot change the laws of the CAS's physics!. You made no mistake, only the HP Prime is sometime quite a true obscure and unpredictable Klingon: [attachment=12933] |
|||
11-23-2023, 08:13 PM
Post: #5
|
|||
|
|||
RE: cannot solve simple equation
(11-23-2023 05:30 PM)C.Ret Wrote:(11-23-2023 03:22 AM)Peter C Wrote: I just got an HP Prime and was trying out its CAS function. I came across a question on special relativity and wanted to try it out. I tried yours and it worked! Does it mean that I cannot use decimals in CAS? Appreciate the help! |
|||
11-24-2023, 07:20 PM
Post: #6
|
|||
|
|||
RE: cannot solve simple equation
Does anyone know why this is happening?
Why it does not work with 4.1 and it does work with 41/10? I would be curious to see the reason behind this. |
|||
11-24-2023, 08:34 PM
(This post was last modified: 11-24-2023 08:56 PM by Albert Chan.)
Post: #7
|
|||
|
|||
RE: cannot solve simple equation
(11-24-2023 07:20 PM)nickapos Wrote: Why it does not work with 4.1 and it does work with 41/10? With exact number, solve does it symbolically. It is equivalent to solve with symbols, then substitute for answer. Cas> solve(a = b/sqrt(1-(v/c)^2), v) (a=4.1, b=2.6, c=3e8) {231963914.402, −231963914.402} With float, solver use Newton's method, but guess (v=tan(t), t = ±1.57) is too low. There is no measurable relativistic effect, the region examined is just a flatline. Cas> f(v) := 4.1 - 2.6 / sqrt(1-(v/3e8)^2) Cas> f(tan(−1.57)) → 1.49999999998 Cas> f(0) → 1.5 Cas> f(tan(+1.57)) → 1.49999999998 We have to provide a better guess for v Cas> solve(f(v), v=2e8) → 231963914.402 |
|||
11-25-2023, 12:30 AM
Post: #8
|
|||
|
|||
RE: cannot solve simple equation
(11-24-2023 08:34 PM)Albert Chan Wrote:Thank you very much Albert that makes sense(11-24-2023 07:20 PM)nickapos Wrote: Why it does not work with 4.1 and it does work with 41/10? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)