[Clip] Re: how to use scientific notation in a clip?
I did some further study, especially of the note about math functions
that Sheri referred to (from 2003) and finally got the clip to
calculate the frequency in scientific notation. I took the logarithm
of the calculated frequency, used the FLOOR function to round the log
down to an integer, and divided the result by that power of 10 to get
The prompts (now commented out) helped me verify each step of the
H="Wavelength -> Frequency"
^!Set %wavelength%=^?[Enter the wavelength (cm)]
;^!Prompt ^%wavelength% cm
;^!Prompt ^%wavelength% cm = ^%frequency% cycles/sec.
^!Prompt ^%wavelength% cm = ^$Calc(^%frequency%/1e^%log_frequency%;3)
$ x 10^^%log_frequency% cycles/sec (scientific notation)