Units and Conversions

Units and Conversions - Сообщения

#1 Опубликовано: 17.07.2011 14:35:07
Guest

Guest

0 сообщений из 52 понравились пользователям.

Группа: User

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
#2 Опубликовано: 17.07.2011 14:50:01
Guest

Guest

0 сообщений из 52 понравились пользователям.

Группа: User

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?
#3 Опубликовано: 30.08.2012 03:03:54
ralfsnell

ralfsnell

0 сообщений из 3 понравились пользователям.

Группа: User

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.
#4 Опубликовано: 04.09.2012 16:15:37
Kip

Kip

1 сообщений из 3 понравились пользователям.

Группа: User

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
<unit value="0.79*'in^2" description="248" dimension="All"> 
    <name lang="eng" text="'A.#8" />
  </unit>

Units.7z (3 КиБ) скачан 215 раз(а).
#5 Опубликовано: 23.07.2013 18:02:02
Ricyteach

Ricyteach

1 сообщений из 14 понравились пользователям.

Группа: User

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
#6 Опубликовано: 21.11.2019 19:05:56
yardern

yardern

0 сообщений из 3 понравились пользователям.

Группа: User

Great software!
I especially like the interface as a calculator.

Wonder if we already have the function of bin-oct-hex-dec conversion?

Thanks!
#7 Опубликовано: 22.11.2019 01:08:40
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1675 понравились пользователям.

Группа: User

Wrote

Great 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 КиБ) скачан 267 раз(а).

Clipboard01.gif

Best regards.
Alvaro.
#8 Опубликовано: 23.11.2019 00:56:38
#9 Опубликовано: 23.11.2019 04:37:30
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1675 понравились пользователям.

Группа: User

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 КиБ) скачан 189 раз(а).
numbase.sm (209 КиБ) скачан 154 раз(а).

Best regards.
Alvaro.
2 пользователям понравился этот пост
frapuano 24.11.2019 05:46:00, Mark R Harris 26.12.2022 22:29:00
#10 Опубликовано: 23.11.2019 22:31:26
yardern

yardern

0 сообщений из 3 понравились пользователям.

Группа: User

Thanks! Razonar.
Obviously I have a lot to learn.

#11 Опубликовано: 17.02.2020 09:07:24
idushy

idushy

0 сообщений из 18 понравились пользователям.

Группа: User

Wrote

Wrote

Great 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 КиБ) скачан 267 раз(а).

Clipboard01.gif

Best regards.
Alvaro.



This is cool, but Bas2Dec("803d800",16)=134576128 - is no true. True resulit is 134469632. Help me pleas.
#12 Опубликовано: 17.03.2020 02:07:15
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1675 понравились пользователям.

Группа: User

Hi. Sorry for the long delay.

I don't use ucase function, so those are different strings:

dec.jpg

Best regards.
Alvaro.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений