DB48X: HP48-like RPL implementation for DM42
|
Today, 11:14 AM
Post: #395
|
|||
|
|||
RE: DB48X: HP48-like RPL implementation for DM42
(Today 05:16 AM)nickapos Wrote: Hi Christoph, Yes. As you saw from the app, constants have a special marker, that shows up as a white on black [cst]. This is unicode character Ⓒ, so the constant for π must be written Ⓒπ in the files. You can copy/paste that from the simulator as I just did. The rationale for constants requiring a prefix was that I did not want names like R, c or N to clash with variable names. I did consider making an exception for π and there is an exception for ⅈ due to the parsing of complex numbers. Quote:When I edit this equation in the app itself I see that pi is defined as cst π and it becomes bold in the equation but how do I transfer that to the equations file? I hope that the above helps. Also please consider adding the proper unit to the variables. You need to do that only once per variable in a given equation. You need to put parentheses around the unit to avoid ambiguity with * and / . Now, your particular equation looks like a resonant frequency, and this is already a system in the equation library called Resonant Frequency under Electricity. Specifically, this is the current system (illustrating the use of units I was referring to): { 'Qs=1÷(R_Ω)·√((L_mH)÷(C_μF))' 'Qp=(R_Ω)·√((C_μF)÷(L_mH))' '(ω0_r/s)=2·(Ⓒπ_r)·(f0_Hz)' '(ω0_r/s)=(1_r)÷√((L_mH)·(C_μF))' } The help for that equation is not written yet I believe, though this may be in the patches that Jean Wilson submitted that I did not integrate yet. DB48X,HP,me |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: c3d, 12 Guest(s)