Jump to content

Numeric error propagation: Difference between revisions

m
J: explain why we have @}. in the unc definition
m (Undo revision 218619 by Rdm (talk) - broke arithmetic evaluation)
m (J: explain why we have @}. in the unc definition)
Line 681:
unc=: {:@}."1 : ,.
dist=: +/&.:*:</lang>
 
Note that if a number has no uncertainty assigned to it, we assume the uncertainty is zero.
 
Jumping into the example values, for illustration purposes:
Line 720 ⟶ 722:
<lang j> exp&0.5 (x1 sub x2) add&(exp&2) y1 sub y2
111.803 2.48717</lang>
 
=={{header|Java}}==
<lang java>public class Approx {
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.