Skip to content

Commit

Permalink
Example updated for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lebigot authored Feb 6, 2024
1 parent 1920d20 commit 1c85251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ calculations with uncertainties** (aka "error propagation"):
>>> from uncertainties import ufloat
>>> from uncertainties.umath import * # sin(), etc.
>>> x = ufloat(1, 0.1) # x = 1+/-0.1
>>> print 2*x
>>> print(2*x)
2.00+/-0.20
>>> sin(2*x) # In a Python shell, "print" is optional
0.9092974268256817+/-0.08322936730942848
Expand Down

0 comments on commit 1c85251

Please sign in to comment.