"ComputedNumber" (Interpreter Type)
A number derived by computation.
Details
- "ComputedNumber" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedNumber" requires connectivity to the Wolfram Cloud.
Allowed Forms
- Any natural-language number supported by "SemanticNumber", or a computation yielding one.
Restriction Specifications
-
Restricted["ComputedNumber",{{choices1,…}}] one among choices Restricted["ComputedNumber",max] a number below max Restricted["ComputedNumber",{min,max}] a number between min and max Restricted["ComputedNumber",{min,max,s}] a number between min and max, with step s
Interpretation
- "ComputedNumber" yields a number with head Integer or Real, or an expression that reduces to a number via N.
Examples
Basic Examples (4)
Interpreter["ComputedNumber"]["4.3456E12"]Interpreter["ComputedNumber"]["a fourth"]Interpret numbers derived by computation:
Interpreter["ComputedNumber"]["two plus six"]Interpreter["ComputedNumber"]["e^-2"]Interpreter["ComputedNumber"]["2+7-cos(pi/8)"]Computations with data are allowed:
Interpreter["ComputedNumber"]["atomic number of uranium"]Interpreter["ComputedNumber"]["number of academy awards won by Avatar"]Interpreter[Restricted["ComputedNumber", 15]]["10th prime number"]Related Guides
History
Introduced in 2014 (10.0)