Flint Python API¶
- class flint¶
A rounded floating point numeric data type. This is a numeric data type and supports all the standard arithmetic operations (
+,-,*,/,**) and thier respective inplace operators (+=,-=,*=,/=,**=) between other flint types as well as all non-complex numeric types. In addition the flints can be cast back a standard floating point type with the built-in python float function.Members¶
- a¶
The lower bound of the interval
- b¶
The upper bound of the interval
- v¶
The tracked value
Properties¶
- eps¶
The width of the interval (b-a)
- interval¶
- Getter:
The interval boundary data as a tuple (a, b)
- Setter:
Set the interval data with a tuple
If you set only boundaries (a,b) the tracked value is set to the average (b-a)/2
You can also set the tracked value with a three element tuple (a, b, v)
Methods¶
- abs()¶
Evaluate the absolute value of the interval
- sqrt()¶
Evaluate the square root of the interval
- cbrt()¶
Evaluate the cube root of the interval
- hypot()¶
Evaluate the hypotenuse distance with the two intervals
- exp()¶
Evaluate the exponential func of an interval
- exp2()¶
Evaluate the exponential base 2 of an interval
- expm1()¶
Evaluate the exponential minus 1 of an interval
- log()¶
Evaluate the natural log of the interval
- log10()¶
Evaluate the log base 10 of the interval
- log2()¶
Evaluate the log base 2 of the interval
- log1p()¶
Evaluate the natural log of one plus the interval
- sin()¶
Evaluate the sine of the interval
- cos()¶
Evaluate the cosine of the interval
- tan()¶
Evaluate the tangent of the interval
- arcsin()¶
Evaluate the inverse sine of the interval
- arccos()¶
Evaluate the inverse cosine of the interval
- arctan()¶
Evaluate the inverse tangent of the interval
- arctan2()¶
Evalute the two-input inverse tangent of the intervals
- sinh()¶
Evaluate the hyperbolic sine of the interval
- cosh()¶
Evaluate the hyperbolic cosine of the interval
- tanh()¶
Evaluate the hyperbolic tangent of the interval
- arcsinh()¶
Evaluate the inverse hyperbolic sine of the interval
- arccosh()¶
Evaluate the inverse hyperbolic cosine of the interval
- arctanh()¶
Evaluate the inverse hyperbolic tangent of the interval