From 1c85251a68673ad7457a69a87bf9f11a007e7f58 Mon Sep 17 00:00:00 2001 From: "Eric O. LEBIGOT (EOL)" Date: Tue, 6 Feb 2024 19:54:04 +0100 Subject: [PATCH] Example updated for Python 3 --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 979d01f4..e93355a7 100644 --- a/README.rst +++ b/README.rst @@ -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