From e4528eb71fe6fe0fcac7709fd23b1a6a9813060d Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:24:51 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- sympy/intro/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sympy/intro/README.md b/sympy/intro/README.md index 79b3f95..3dd8660 100644 --- a/sympy/intro/README.md +++ b/sympy/intro/README.md @@ -235,4 +235,11 @@ C1 = sympy.symbols('C1', positive=True) |odd=True| The symbol represents an odd number.| |even=True| The symbol represents an even number.| +## Limiting the range of a symbol +```python +import sympy + +x = sympy.symbols("x") +sympy.solve([x**2 - 1, x >= 0.5, x <= 3], x) +```