The calculator I always wanted
|
03-14-2021, 09:42 PM
Post: #40
|
|||
|
|||
RE: The calculator I always wanted
(03-14-2021 08:22 PM)john gustaf stebbins Wrote: Having units will be very useful. Sorry, I really wanted to give the ability to define your own units, but I haven't found a way to do it. I added about half these units to Symja myself, and I had to rebuild the entire library every time. They are basically hard-coded in. I did consider doing something where you could select a base unit and then apply a prefix to it, but that would be UI candy on my part; Symja would have to have every combination of base unit and prefix hard-coded in. Yes, in my example, you just multiply 100 by 1 gallon / 1 minute. I don't have a gallon/minute combination unit. The combination units I do have (like foot-pounds) just execute several keystrokes for you on the base units (i.e. create a foot constant, create a pounds constant, and multiply them together). I'm not sure if I understand your comment about gathering units. I'm guessing you mean that 8 ft * 3 in should either return 2 ft^2 or 288 in^2, but not 24 in*ft. If so, that is a limitation of the Symja engine; it basically relies on you doing a unit convert at the end to figure out how to optimize things. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)