Interval package: Difference between revisions

m
Line 217: Line 217:
{{Code|Examples of using interval arithmetic functions|<syntaxhighlight lang="octave">
{{Code|Examples of using interval arithmetic functions|<syntaxhighlight lang="octave">
sin (infsupdec (0.5)) # [.4794255386042029, .4794255386042031]_com
sin (infsupdec (0.5)) # [.4794255386042029, .4794255386042031]_com
pow (infsupdec (2), infsupdec (3, 4)) # [8, 16]_com
power (infsupdec (2), infsupdec (3, 4)) # [8, 16]_com
atan2 (infsupdec (1), infsupdec (1))
atan2 (infsupdec (1), infsupdec (1))
   # [.7853981633974482, .7853981633974484]_com
   # [.7853981633974482, .7853981633974484]_com
240

edits