1 Pages (12 items)
Units and Conversions - Messages
#1 Posted: 7/17/2011 2:35:07 PM
If someone wants to roll up his sleeves and correct the issues documented with SMath's implementation of Units (one of its absolutely best features), and make it more universally complete, here are some useful resources:
http://www.digitaldutch.com/unitconverter/
http://www.chemie.fu-berlin.de/chemistry/general/units_en.html
http://www.megaconverter.com/Mega2/index.html
http://www.nist.gov/pml/wmd/metric/unit-conversion.cfm
http://physics.nist.gov/cuu/Units/
http://physics.nist.gov/cuu/Units/binary.html
For conversion factors, it might be easiest to use a two stage process. All units of a given type (e.g., length) are converted to one standard value used by smath and then that standard value is converted to the desired value. That way there is only one list of conversions to funnel values into the standard unit. Then inverse of conversions would be used to convert back out to the desired value. This avoids an N squared table of conversions. Furthermore, using fundamental physical constants to "derive" some of these conversion factors (see SI standards) would make compiling the list of constants less tedious. Of course, this won't work for nonphysical units such as currency.
BTW, does anybody know if Roman Numerals are supported in smath?
Eagle
http://www.digitaldutch.com/unitconverter/
http://www.chemie.fu-berlin.de/chemistry/general/units_en.html
http://www.megaconverter.com/Mega2/index.html
http://www.nist.gov/pml/wmd/metric/unit-conversion.cfm
http://physics.nist.gov/cuu/Units/
http://physics.nist.gov/cuu/Units/binary.html
For conversion factors, it might be easiest to use a two stage process. All units of a given type (e.g., length) are converted to one standard value used by smath and then that standard value is converted to the desired value. That way there is only one list of conversions to funnel values into the standard unit. Then inverse of conversions would be used to convert back out to the desired value. This avoids an N squared table of conversions. Furthermore, using fundamental physical constants to "derive" some of these conversion factors (see SI standards) would make compiling the list of constants less tedious. Of course, this won't work for nonphysical units such as currency.
BTW, does anybody know if Roman Numerals are supported in smath?
Eagle
#2 Posted: 7/17/2011 2:50:01 PM
That last part is interesting: Roman numerals
Is it possible to support base conversions bin-oct-hex-dec-base12(duodecimal) and other ancient (or modern) numbering/numeral systems?
Is it possible to support base conversions bin-oct-hex-dec-base12(duodecimal) and other ancient (or modern) numbering/numeral systems?
#3 Posted: 8/30/2012 3:03:54 AM
Is it possible to modify or add to the definitions in "\entries\units.xml
to add "Torque" units similar to Mathcad....
Also, is it possible to modify same file to add US definitions
and change defaults, as well as eliminate some that are not used as frequently
in US.
For example, in 30+ year of structural engineering I have only once used
SI units and never illuminance, inductance units, etc....if they can be
eliminated in a "custom" units.xml file, I would remove most the unused units.
It would significantly speed up drilling down to units I do use on frequent basis.
to add "Torque" units similar to Mathcad....
Also, is it possible to modify same file to add US definitions
and change defaults, as well as eliminate some that are not used as frequently
in US.
For example, in 30+ year of structural engineering I have only once used
SI units and never illuminance, inductance units, etc....if they can be
eliminated in a "custom" units.xml file, I would remove most the unused units.
It would significantly speed up drilling down to units I do use on frequent basis.
#4 Posted: 9/4/2012 4:15:37 PM
It is possible to do so, I've edited my units.xml to define everything in terms of inches and pounds (left metric alone since I don't use it). I also added a few custom definitions such as area and diameter of rebar.
To add units I found it best to not change the language file and just add the unit definition
Units.7z (3 KiB) downloaded 210 time(s).
To add units I found it best to not change the language file and just add the unit definition
<unit value="0.79*'in^2" description="248" dimension="All">
<name lang="eng" text="'A.#8" />
</unit>
Units.7z (3 KiB) downloaded 210 time(s).
#5 Posted: 7/23/2013 6:02:02 PM
This is great. Thanks for posting this for all of us who have to use English units. It's not quite perfect (converting between metric and English does not output as expected), but it's much better than the defaults, especially the badly needed inclusion of units for force density (pcf).
Can someone explain to me how to adjust this file so the default unit is feet instead of inches? For example, in the following calculation:
150 pcf * 1 ft * 1 ft =
I would like the default result to be:
150 lb/ft
instead of:
12 lb/in
Can someone explain to me how to adjust this file so the default unit is feet instead of inches? For example, in the following calculation:
150 pcf * 1 ft * 1 ft =
I would like the default result to be:
150 lb/ft
instead of:
12 lb/in
#6 Posted: 11/21/2019 7:05:56 PM
Great software!
I especially like the interface as a calculator.
Wonder if we already have the function of bin-oct-hex-dec conversion?
Thanks!
I especially like the interface as a calculator.
Wonder if we already have the function of bin-oct-hex-dec conversion?
Thanks!
#7 Posted: 11/22/2019 1:08:40 AM
WroteGreat software!
I especially like the interface as a calculator.
Wonder if we already have the function of bin-oct-hex-dec conversion?
Thanks!
Hi. I use this.
numbase.sm (12 KiB) downloaded 261 time(s).
Best regards.
Alvaro.
#8 Posted: 11/23/2019 12:56:38 AM
#9 Posted: 11/23/2019 4:37:30 AM
Wrote
Wish it could handle negative values.
You need to define the complement value. Windows calc use 2^64, but SMath only can use 2^32. Check the attached.
Wrote
BTW, I see a lot squares in (I know not all ASCII code can be displayed) definition of N$256, It seems N$256 is not needed?
Anyway, thanks!
I use N$256 sometimes for convert full ASCII text to a decimal number. For example, the string "SMath" in base 256, using N$256 is 353468707687 in base 10.
numbase.pdf (507 KiB) downloaded 182 time(s).
numbase.sm (209 KiB) downloaded 153 time(s).
Best regards.
Alvaro.
2 users liked this post
#10 Posted: 11/23/2019 10:31:26 PM
Thanks! Razonar.
Obviously I have a lot to learn.
Obviously I have a lot to learn.
#11 Posted: 2/17/2020 9:07:24 AM
WroteWroteGreat software!
I especially like the interface as a calculator.
Wonder if we already have the function of bin-oct-hex-dec conversion?
Thanks!
Hi. I use this.
numbase.sm (12 KiB) downloaded 261 time(s).
Best regards.
Alvaro.
This is cool, but Bas2Dec("803d800",16)=134576128 - is no true. True resulit is 134469632. Help me pleas.
#12 Posted: 3/17/2020 2:07:15 AM
1 Pages (12 items)
-
New Posts
-
No New Posts