Opened 9 years ago

Closed 9 years ago

#2310 closed enhancement (fixed)

define your own slide

Reported by: walter Owned by: walter
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sliderule Version: Unspecified
Severity: Unspecified Keywords:
Cc: tonyforster Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

It would be nice to be able to define a slide by typing in a function for the labels.

Attachments (1)

Sliderule-15.xo (39.8 KB) - added by walter 9 years ago.
final version pending any feedback

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by tonyforster

  • Cc tonyforster added

comment:2 Changed 9 years ago by tonyforster

Maybe I am going over the top here but that would be interesting when combined with hexidecimal, octal and other base arithmetic. You could then make a log16 sliderule with hex notation that would be usable in the same way as a log10 rule wrt underflow/overflow and which a Ln one cannot.
Also poses interesting thought experiments like can you make a binary sliderule?

comment:3 Changed 9 years ago by walter

Feedback appreciated.

Not sure how to handle errors. Also not sure how to make it clear what the various input fields are doing.

But it sort of/kind of works :)

comment:4 Changed 9 years ago by walter

The latest version:

  • imports all of the math libraries
  • loads custom slide upon creation
  • displays errors when formulae are not properly specified
  • should also fix #2311 problem

comment:5 Changed 9 years ago by walter

Lots of small fixes and enhancements:

  • button for creating custom slide is now gear button
  • fixed scaling problem that was causing mix of log and log10
  • more Exception catching

Changed 9 years ago by walter

final version pending any feedback

comment:6 Changed 9 years ago by walter

FWIW, I've modified the custom generator so that you can assign strings as labels, e.g.,

hex(int(x)) or bin(int(x))

comment:7 Changed 9 years ago by walter

Should there be two customs slides: slide different from stator? Or is that going too far?

comment:8 Changed 9 years ago by walter

  • Resolution set to fixed
  • Status changed from new to closed

Closing this ticket... please open a new ticket for any additional enhancements to this feature.

Note: See TracTickets for help on using tickets.