Release 0.8.2 "Honor Seats" - Equation Library Examples, Assignments #1274
c3d
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release is focusing on the testing, validation and usability of the equation library contributed by Jean Wilson. To that effect, it
introduces a new kind of objects, assignments, that only exist on the DB48x and have no direct equivalent on original HP calculators. It also completes the support for library equations in the
Root
command.Here is an example that illustrates these capabilities, testing the
Ohm’s Law & Power
equation in the library:If you are reading this release note directly on the calculator, you can simply click
ENTER
while the text above shows up, and it will be copied in your editor. You can change the values of the input variables to explore various possibilities.In this example,
V=24_V
is an assignment object that assigns the value24_V
to the global variable namedV
. It is almost equivalent to24_V 'V' STO V
, except that the value placed on the stack is the assignment object itself. In other words, evaluatingV=24_V
placesV=24_V
on the stack. This makes it easy to edit or evaluate assignments on the stack using the interactive stack. In particular, you can select an assignment on the stack wiht the interactive stack and use theEval
(F3) function to restore the variable to the value in the assignment.The
ROOT
command in the example illustrates how you can directly use equations in the equation library as argument toRoot
, and use the multiple-equation solver to solve for more than one variable at a time.All the examples in the on-line help are now also tested automatically, in order to ensure that all the given examples give the expected results.
Features
CustomMenu
, whicih is toggled by successive presses on the VAR key. An example is shown in theDemo.48s
file. Thecontent of the
CST
orCustomMenu
variable is used to define this menu.rpl
syntax colorization indicator. They can be executed directly from the on-line help on the calculator by hitting ENTER while the code block is shown on the screen.Light Propagation
andUltrarelativistic Cases
Energy & Momentum
equation setName=Value
, e.g.A=3
.▶
command to store while keeping value on stack. As an extension relative to the HP50G, this command also works inside RPL algebraicexpressions. For example
3▶A
stores3
inA
and returns the value inA
. The command is calledCopy
(the HP50G ARM calls it▶ (Store))
Root
command now accepts library equations as input.;
as a separator between values. For example,'[1;2;3]+[4;5;6]'
adds two vectors using an algebraic notation. Vectors can contain algebraic expressions. For example
'[x+1;y+2;z=3]'
is a validvector expression.
RombergPlot
example to Library and Demo file. This example shows how theIntegrate
command evaluates the underlying function.XRng
andYRng
to thePlotMenu
Bug fixes
Simple Slope
equationcase
statement'330_m-20_m'
was incorrectly interpreted as'330_m'
, nowcorrectly computes
'310_m'
.Integrate
imprecision and iteration settings.→Str
. For example,3 FIX 0.1 →Str
now returns"0.100"
and not"0.1"
, like on HP calculators(12;3)
Echo
command in the interactive stack inserting theobject at the end of the text editor instead of at the cursor position.
Invalid digit for base
on the console parsing1E-10
to_decimal_if_big
, which could be triggered if interrupting anIntegrate
command using the EXIT key.Improvements
Root
commandFull Changelog: v0.8.1...v0.8.2
This discussion was created from the release Release 0.8.2 "Honor Seats" - Equation Library Examples, Assignments.
Beta Was this translation helpful? Give feedback.
All reactions