Post Reply 
DB48X: HP48-like RPL implementation for DM42
09-12-2024, 07:54 PM
Post: #294
v0.7.17: DoSubs, DoList, various other improvements
(09-04-2024 03:37 PM)grbrum Wrote:  Hello Christophe, do you plan on implementing DOSUBS command? Or is there another command that I can use as alternative?

Thank you

Pre-release v0.7.17 was just published, which among other things implements DOSUBS and DOLIST.

(09-06-2024 07:05 AM)ormandj Wrote:  I do a lot of calculations in computing and am trying to figure out how to use this functionality efficiently. An example common computation would be computing how long it would take to transfer 600TB at 10gbit/s. I’m struggling to enter these units directly.

Unit entry has been improved to help with such cases:
  • First, if you go to the computing units, you now have TB or GiB directly available, as well as Gbit/s.
  • Second, when you enter a unit, it does not directly push the value on the stack. Instead, there is a new unit entry mode where you can use multiply and divide to combine units.
  • Third, the EEX / x10^n key (cycle) will cycle unit prefixes, so instead of directly entering Gbit/s from the menu, you can enter bit and use that key to convert it to Gbit.

For example, to enter 10_Gbit/s, you can enter 1 0 UNIT (SHIFT-5) Computing (SHIFT-SHIFT-F5) bit (F1). At this point the editor shows 10_bit, the cursor is after "bit", and in 'unit' mode (U). Type EEX three times to get 10_Gbit. Then type /, which does not apply immediately because you are in unit mode. Instead, you see 10_Gbit/ on the command line. Type s or go to the Time menu (SHIFT-5-SHIFT-F1) and select 's' (F1). The command line now contains 10_Gbit/s. ENTER puts it on the stack.


Features
  • lists: Implement `DoList`, `DoSubs`, `NSub` and `EndSub`
  • units: Add usual "big" units to `Computing` units menu (e.g. KB, MB)
  • graphics: Add `Freeze` command
  • ui: Make it easier to enter units
  • expressions: Accept algebraic forms for `integrate` and `root`
  • expressions: Graphical rendering of integrals

Bug fixes
  • case: Preserve the code for the default case (which was lost before)
  • parser: Parse arg-less alegbraic commmands such as `NSub`
  • equations: Fix syntax errors in built-in equations, e.g. missing parentheses
  • equations: Replace variables that match DB48X command names, e.g. `Re`
  • equations: Replace imperial units with SI units, e.g. `in` with `cm`
  • units: Reject user-defined functions in unit expressions
  • constants: Fix definition for the `qε0` constant

Improvements
  • Update help about equations with some additional material
  • tests: Run through all the builtin equations
  • ui: Do not insert an extra space before parentheses in equation
  • simulator: Add macOS icons for DB48X and DB50X
  • font: Record saved font with `v` update

⚙️,?,?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
DB48X v0.4.8 is out - c3d - 10-22-2023, 11:31 PM
Release v0.5.0: Statistics and flags - c3d - 11-20-2023, 08:57 AM
v0.6.5: Minor bug fixes - c3d - 02-11-2024, 11:23 PM
Release 0.7.1 "Whip" - Bug fixes - c3d - 03-04-2024, 12:46 AM
DB48X v0.7.4 release is out - c3d - 04-14-2024, 03:05 PM
DB48X v0.7.6: Solving menu - c3d - 05-13-2024, 12:04 AM
DB48X v0.7.7: Units in solver - c3d - 06-02-2024, 11:36 PM
v0.7.10 - Interactive stack - c3d - 07-14-2024, 11:31 PM
DB48X v0.7.13 is out - c3d - 08-05-2024, 07:31 AM
DB48X v0.7.15 - c3d - 08-25-2024, 08:45 PM
DB48X v0.7.16 - c3d - 09-02-2024, 01:36 AM
DOSUBS command - grbrum - 09-04-2024, 03:37 PM
v0.7.17: DoSubs, DoList, various other improvements - c3d - 09-12-2024 07:54 PM
v0.7.18 - APPLY, SUBST, WHERE - c3d - 09-15-2024, 11:58 PM
Program Editing Question - spiff72 - 09-16-2024, 03:27 PM



User(s) browsing this thread: 19 Guest(s)