mirror of
https://github.com/ekmett/propagators.git
synced 2024-09-11 05:15:41 +03:00
better csqrt for propagated intervals
This commit is contained in:
parent
82b4c53e2a
commit
eb6d1882ad
@ -179,6 +179,12 @@ instance (PropagatedInterval a, RealFloat a) => PropagatedFloating (Interval a)
|
||||
lift1 exp x y
|
||||
lift1 log y x
|
||||
|
||||
csqrt x y = do
|
||||
write x (0...infinity)
|
||||
write y (0...infinity)
|
||||
lift1 sqrt x y
|
||||
lift1 (\a -> a*a) y x
|
||||
|
||||
csin x y = do
|
||||
write y (-1...1)
|
||||
lift1 sin x y
|
||||
|
Loading…
Reference in New Issue
Block a user