forallpeople
forallpeople copied to clipboard
Python SI units library: your 'daily driver' for calculations.
I'm with a friend who is trying to use "forallpeople" in his (Electrical calculations) we face the following problems. 1- he can't use "mm" in "electrical environment" or even "default"...
Is there any way to control what unit to display at calculation? See this example: ``` import handcalcs.render import forallpeople as si si.environment('structural',top_level=True) %%render 2 a = 0.30*m b =...
It seems Physical.prefix() and %%render doesn't work in the same cell, from the following code ``` import handcalcs.render import forallpeople as si from forallpeople import Physical as ph si.environment('structural',top_level=True) %%render...
This unit is useful to define line loads. However, it is not defined in the current structural environment. In USCS system, elastic modulus is in ksi while the moment of...
I use `si.environment('structural', top_level=True)`. I intend to use the unit psi. However, the library will render 'psi' as the Greek letter psi. See the screenshot. The result is looking funny....
Problem: The user accidentally defines an existing unit. It can lead to mistakes. **Feature needed** User should not be allowed to overwrite the existing units in the selected environment. Example...
I am using the following `lambda` function to apply `sqrt` to variables with units: `sqrt = lambda x: x.sqrt()` This works very well until I force the units using `.prefix('something')`...
To force the output units in a `handcalcs `formula, I need to append the `.prefix("something")` function. Unfortunately, for formulas, I have to wrap the entire formula in brackets and then...
Hi Connor, Is there a way to automatically suppress trailing zeros? for example:  the above equation can be rendered as `2.5 m + 0.2 * 5.6 m = 3.62...