Open asteqast opened 1 year ago
I have a similar issue. The correct result for x_3 should be 234 lbf. The conversion is wrong from the library.
a = 6 * si.inch
f = 13 * si.psi
x_3 = 0.5 * a**2 * f
print(f'f = {f}')
print(f'a = {a}')
print(f'x_3 = {x_3}')
Hi,
Was happy to discover Handcalcs + forallpeople, which are very useful in engineering. Tried to solve a simple problem in structural dynamics, and got into trouble. Was trying to display mass in tonnes instead of Mg (I know it is according SI, but for practical reasons just have to display it in tonnes). Added "tonnes" to json, but was getting wrong results. Below are a few calculations that lead to weird results, reproduced with the original "structural" environment.
Everything is fine when SI units are used:
However, when the first quantity is transformed to imperial units (kip/ft):
The problem seems to happen due to the way the scaling factor for unit transformation is computed. The units of the result are correct in both case (m/s2), and the .value property is the same (25 m/s2), but in the second case the result shown is wrong, as it is affected by the .factor property.
Also came upon the following strange behaviour when defining custom units (tonnes):
The only difference between the two is that "Symbol" is missing from the second one. The
.value
properties of the obtainedPhysical
s are though different:t.repr
tt.repr
This does not look like the intended behaviour. Not sure it is related to the issue above.
Thanks