Jump to content

Numeric error propagation: Difference between revisions

m
Add output.
m (Add output.)
Line 498:
 
=={{header|Haskell}}==
{{output?|Haskell}}
<lang haskell>data Error a = Error {value :: a, uncertainty :: a} deriving (Eq, Show)
 
Line 520:
y2 = Error 100 2.3
</lang>
{{out}}
<pre>Error {value = 111.80339887498948, uncertainty = 2.4871670631463423}</pre>
 
=={{header|Icon}} and {{header|Unicon}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.