"Real64" (Compiled Type)
"Real64"
represents an IEEE double‐precision real atomic type specifier.
Details
- "Real64" can be used in Typed and related constructs to specify a type.
Conversions
- Suitably sized Real expressions can be converted into compiled elements with the type "Real64".
- Compiled elements with the type "Real64" can be converted into Real expressions.
- "Real64" compiled elements are automatically promoted to complex elements when they are combined in binary arithmetic operations.
- "Real32" compiled elements are automatically promoted to "Real64" elements when they are combined in binary arithmetic operations.
- Integers are automatically promoted to "Real64" when they are combined in binary arithmetic operations.
From Expressions
To Expressions
Arithmetic
Examples
Basic Examples (4)Summary of the most common use cases
"Real64" can be used as an input and output from a CompiledCodeFunction:
In[1]:=1
✖
https://wolfram.com/xid/0vli9mkqwl0hmfc2tms3d112x-ck3oom
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0vli9mkqwl0hmfc2tms3d112x-oe1o2j
Out[2]=2
A domain error can take place while running the function. The computation is terminated, a message is issued and the Wolfram Engine is used to compute the result:
In[1]:=1
✖
https://wolfram.com/xid/0vli9mkqwl0hmfc2tms3d112x-d4hxzg
Out[1]=1
An overflow causes an error while running the function. The computation is terminated, a message is issued and the Wolfram Engine is used to compute the result:
In[1]:=1
✖
https://wolfram.com/xid/0vli9mkqwl0hmfc2tms3d112x-q0ndn0
Out[1]=1
The "Real64" argument is automatically promoted when combined with a complex number:
In[1]:=1
✖
https://wolfram.com/xid/0vli9mkqwl0hmfc2tms3d112x-sizlrf
Out[1]=1
The "Real32" argument is automatically promoted when combined with a "Real64":
In[2]:=2
✖
https://wolfram.com/xid/0vli9mkqwl0hmfc2tms3d112x-vwh9yq
Out[2]=2
The "Integer8" argument is automatically promoted when combined with a "Real64":
In[3]:=3
✖
https://wolfram.com/xid/0vli9mkqwl0hmfc2tms3d112x-npmizi
Out[3]=3