"ComputedAge" (Interpreter Type)
"ComputedAge" (Interpreter Type)
An age derived by computation.
Details
- "ComputedAge" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedAge" requires connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["ComputedAge",{{choices1,…}}] one among choices Restricted["ComputedAge",unit] convert to unit Restricted["ComputedAge",unit,max] an age below Quantity[max,unit] Restricted["ComputedAge",unit,{min,max}] an age between Quantity[min,unit] and Quantity[max,unit] Restricted["ComputedAge",unit,{min,max,s}] an age between Quantity[min,unit] and Quantity[max,unit] with step s
Interpretation
- "ComputedAge" yields a Quantity.
Examples
Basic Examples (3)
Interpreter["ComputedAge"]["30 month old"]Interpreter["ComputedAge"]["2 yrs"]Interpret ages derived by computation:
Interpreter["ComputedAge"]["age of Michael Jackson when he died"]Interpreter["ComputedAge"]["how old is the Golden Gate?"]If no unit is provided in the input string, imply years:
Interpreter["ComputedAge"]["6+2"]See Also
Interpreter SemanticImport Restricted Failure
Interpreter Types: Age Quantity PhysicalQuantity StructuredQuantity ComputedQuantity
Related Guides
History
Introduced in 2015 (10.2)