(and how to use it) on their system.
I think what would be nice would to be be able to run SymPy Live on
one's own and a Docker image would be perfect for that.
>
> Sudhanshu Mishra
>
> On Tue, Jun 28, 2016 at 11:00 AM, Sartaj Singh <singhsarta...@gmail.com>
> wrote:
>>
>>
>
Hi all,
I am very excited to share that I am doing a webcast this coming week
with O'Reilly titled "Doing Math with Python"
(http://www.oreilly.com/pub/e/3712). For those who may not be familiar
with my book, SymPy forms a core part in three chapters, so the
webcast may be interesting as well.
On Tue, Jun 28, 2016 at 5:21 AM, Sartaj Singh wrote:
> Another resource https://github.com/jupyter/docker-demo-images. The
> notebooks here are hosted on tmpnb.org. Apparently they serve the notebooks
> via docker containers. We can have an introductory notebook there as
On Tue, Apr 5, 2016 at 11:24 AM, Aaron Meurer wrote:
> You can just use symbols(variables) (symbols() works with a list of strings).
Or, for some reason if you want to:
variables = ['x', 'y', 'z']
sympy_variables = []
for v in variables:
sympy_variables[i] = Symbol(v)
On Tue, Mar 8, 2016 at 9:54 AM, Lawrence Tattrie
wrote:
> I am trying to learn sympy by plotting Lissajous curves. I am familiar with
> python and know some math. I downloaded and installed the Anaconda package
> for Windows. I have been able to get a simple curve
On Wed, Jul 22, 2015 at 1:22 PM, Hong Xu h...@topbug.net wrote:
Hi,
When I tried to run
print(sympify('a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N'))
I got the error:
Traceback (most recent call last):
File test.py, line 6, in module
On Mon, May 25, 2015 at 5:18 AM, doris...@berkeley.edu wrote:
Hi all,
I am new to SymPy and I am trying to rearrange equations in order to express
one variable in terms of another in SymPy.
For example, I have two physics equations F=ma and rho=m/v which I defined
in the beginning. I want
On Mon, May 18, 2015 at 11:56 PM, Carsten Knoll carstenkn...@gmx.de wrote:
I want to equip an Symbol with an additional attribute to store some
specific information right in place.
For 'normal' Python classes it is no problem to dynamically create an
additional attribute for an already
On Mon, May 11, 2015 at 3:27 PM, Aaron Meurer asmeu...@gmail.com wrote:
On Mon, May 11, 2015 at 12:05 AM, Amit Saha amitsaha...@gmail.com wrote:
Hi all,
Is this the best way to check whether an expression is an inequality ?
Yes, except note that Relational can also be Eq().
Thanks
Hi all,
Is this the best way to check whether an expression is an inequality ?
expr = x - 4 0
isinstance(expr, Relational)
True
expr = x - 4 = 0
isinstance(expr, Relational)
True
expr = x - 4 = 0
isinstance(expr, Relational)
True
Also, can I submit a change to allow Relational to be
Hi Aaron,
On Mon, May 11, 2015 at 3:21 AM, Aaron Meurer asmeu...@gmail.com wrote:
Why wouldn't the input just be the inequality object itself?
That would be a better way, thanks. Here is what I got now:
from sympy import Symbol, solve_poly_inequality,
solve_rational_inequalities,
On Sun, May 10, 2015 at 7:01 PM, AMiT Kumar dtu.a...@gmail.com wrote:
Hi Amit,
The `gen` argument corresponds to the symbol you are solving for
the univariate inequality (expr).
Example:
solve_univariate_inequality(x**2 = 4, x)
Or(And(-oo x, x = -2), And(2 = x, x oo))
Hi all,
I was exploring the inequality solvers [1] and it seemed to me that
for someone exploring inequality solving with sympy, a helper method
which would just allow the user to feed in the expression and the
relational operator would be useful:
from sympy import Symbol, solve_poly_inequality,
Hi all,
What does the gen argument mean in the context of
solve_univariate_inequality(expr, gen, relational=True) [1] ?
[1]
http://docs.sympy.org/dev/modules/solvers/inequalities.html#sympy.solvers.inequalities.solve_univariate_inequality
Thanks,
Amit.
--
http://echorand.me
--
You
On Fri, Apr 24, 2015 at 6:01 PM, Joachim Durchholz j...@durchholz.org wrote:
Am 24.04.2015 um 00:02 schrieb Jason Moore:
That makes sense, but I'm not sure whether Garbage in - Garbage Out
should apply or whether SymPy should throw and error.
If something is invalid, the user needs to be
, it could be quite
expensive. I think it would be useful to at least have an option to
subs to check this though.
Like, subs(.., strict=True) ?
Aaron Meurer
On Fri, Apr 24, 2015 at 3:23 AM, Joachim Durchholz j...@durchholz.org wrote:
Am 23.04.2015 um 23:57 schrieb Amit Saha:
My thinking is if x
Hi all,
Let's say I have a symbol:
x = Symbol('x', positive=True)
Should the below substitution be permitted:
(x+1).subs({x:-5})
-4
My thinking is if x is declared to be positive, substituting negative
values should result in an error. Does that make sense?
Best,
Amit.
--
On Mon, Mar 16, 2015 at 3:47 AM, Aaron Meurer asmeu...@gmail.com wrote:
The main design difference with the new assumptions is that the
assumptions are stored separate from the expressions, like
Q.positive(x). I would not recommend using them unless you know what
you are doing, though, because
On Fri, Apr 10, 2015 at 4:54 PM, Paul Royik distantjob...@gmail.com wrote:
Yes.
Is there any way to tell, that t1 ?
I believe, no. I asked this sometime back. [1]
[1]
https://groups.google.com/forum/?utm_medium=emailutm_source=footer#!msg/sympy/FC4cCBdKrs0/PJ9WgPzpIhUJ
On Friday, April
that is underway. But it is far
from complete. This blog gives a pretty good explanation of what the new
assumptions system is going to be.
Thank you. Exactly what I was looking for.
On Saturday, 14 March 2015 03:32:33 UTC+5:30, Amit Saha wrote:
Hi,
From a sympy user's perspective
Hi,
From a sympy user's perspective, which is the getting started
document for the current assumptions implementation? Couple of things
I am looking for:
- When I create a Symbol object, what is the default list of
assumptions about it? How do I find it?
- What are all the possible assumptions
at 1:58 PM, Amit Saha amitsaha...@gmail.com wrote:
Hi all,
I am excited to share that the first chapter of my book [1] which uses
SymPy - Algebra and Symbolic Math with SymPy is now available in
Early Access. SymPy is used in three of the seven chapters in the
book.
Once the book
Hi all,
I am excited to share that the first chapter of my book [1] which uses
SymPy - Algebra and Symbolic Math with SymPy is now available in
Early Access. SymPy is used in three of the seven chapters in the
book.
Once the book is complete, I will likely to able to procure a few
review copies
access to an example chapter to help you decide if you want to
buy the book. I assumed that's what you meant by early access.
Jason
moorepants.info
+01 530-601-9791
On Thu, Mar 5, 2015 at 2:16 PM, Amit Saha amitsaha...@gmail.com wrote:
On Fri, Mar 6, 2015 at 8:10 AM, Jason Moore moorepa
On Tue, Jan 20, 2015 at 7:14 PM, David Roilo davidroilo.t...@gmail.com wrote:
hello everybody,
I'm new to sympy and I need some help to create symbols.
In particular, I need to create a Symbol which looks like ΔR
In SymPy, If I input
DeltaR=symbols('Delta R')
DeltaR
I get as an output a
On Thu, Jan 15, 2015 at 2:42 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Wed, Jan 14, 2015 at 3:28 AM, Joachim Durchholz j...@durchholz.org wrote:
Am 13.01.2015 um 23:53 schrieb Aaron Meurer:
Returning [] instead of raising NotImplementedError would probably not be
a
bad idea either
On Tue, Jan 20, 2015 at 7:25 AM, Joachim Durchholz j...@durchholz.org wrote:
Am 19.01.2015 um 22:14 schrieb Amit Saha:
I am of the same opinion too. The first impression that I get when I
see NotImplementedError is that, it is not currently implemented and
thus is probably a limitation
at 1:14:01 AM UTC+3, Amit Saha wrote:
Thanks for any insights into this and whether there is a workaround.
What do you expect instead and why? Not all algebraic equations
have analytic solutions. Mathematica can't do this eq as well.
Thanks for the quick replies all. The Traceback made me
On Wed, Jan 14, 2015 at 8:53 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Tue, Jan 13, 2015 at 4:41 PM, Amit Saha amitsaha...@gmail.com wrote:
On Wed, Jan 14, 2015 at 8:27 AM, Aaron Meurer asmeu...@gmail.com wrote:
I don't think there are analytic solutions. The equation is equivalent
Hi all,
Just ran into this:
from sympy import solve
solve(2*x*cos(2*x) + sin(2*x))
Traceback (most recent call last):
File pyshell#65, line 1, in module
solve(2*x*cos(2*x) + sin(2*x))
File
/usr/lib/python3.3/site-packages/sympy-0.7.6_git-py3.3.egg/sympy/solvers/solvers.py,
line 912,
On Sat, Jan 10, 2015 at 8:42 AM, Sergey B Kirpichev
skirpic...@gmail.com wrote:
On Sat, Jan 10, 2015 at 08:27:25AM +1000, Amit Saha wrote:
You can't (to be fair, in old assumptions, which we use in the
core). But you can do something like this:
In [4]: limit((1 + x)**n/n, n, S.Infinity
On Sat, Jan 10, 2015 at 1:36 AM, Sergey Kirpichev skirpic...@gmail.com wrote:
On Friday, January 9, 2015 at 4:46:53 PM UTC+3, Amit Saha wrote:
NotImplementedError: Result depends on the sign of sign(log(x))
What does it mean? Can a more user friendly error be given?
What's unfriendly here
Hi all,
Probably something simple that I can't figure out. Consider the following:
x = Symbol('x', positive=True)
n = Symbol('n', positive=True)
limit(x/n, n, S.Infinity)
0
Now:
limit(x**n/n, n, S.Infinity)
Traceback (most recent call last):
File pyshell#95, line 1, in module
On Sat, Jan 3, 2015 at 1:03 PM, Aaron Meurer asmeu...@gmail.com wrote:
If you always want to evaluate to a given expression, then there is no point
in using a Function subclass over a Python function.
In your example, f(x) is nothing more than a shortcut for x**2. fx = f(x) is
semantically
Hi all,
I understand that the compose() function defined in
sympy.polys.polytools can be used as follows:
from sympy import compose, Symbol
x = Symbol('x')
compose(x+1, x+1)
x + 2
Now, let's say I have a user defined function defined as follows:
from sympy import Function, Symbol, solve,
Hi,
I only am realizing that I cannot do FiniteSet[1, 2, 3, 4]) any more.
I did find it very useful to create a set from the elements of a set.
Anyway, it's probably way late for that.
So, what is the recommended way now to create a FiniteSet from an
existing list or any other iterable?
Use
On Sun, Nov 23, 2014 at 12:20 PM, Amit Saha amitsaha...@gmail.com wrote:
Hi,
I only am realizing that I cannot do FiniteSet[1, 2, 3, 4]) any more.
I did find it very useful to create a set from the elements of a set.
set = list
--
You received this message because you are subscribed
Hi all,
Has anyone here played around with SymPy geometric objects (i.e. used
the Point, Circle and other classes) and used matplotlib animation API
to create animated plots (instead of using matplotlib's patches)? If
yes, I would be very keen to learn more.
Thanks,
Amit.
--
Just something I experimented with and it seems to be working. If
someone uses Docker:
https://github.com/amitsaha/docker_files/tree/master/Fedora/sympy-test
So you can do:
docker run -t sympy-test 0.7.6
to run the entire test suite in the 0.7.6 branch
-Amit.
--
You received this message
Hi all,
Just noticed that creating even 1000 point objects is quite slow:
from sympy import Point
@profile
def create_points():
for i in range(1000):
Point(i, i)
i**2
create_points()
A random profiling run using https://github.com/rkern/line_profiler is here at:
Hi,
As per https://github.com/sympy/sympy/issues/6212, is_real is
deprecated. I just found this:
s = FiniteSet(FiniteSet(1, 2, 3))
s
{{1, 2, 3}}
len(s)
1
s.powerset()
/usr/lib/python3.3/site-packages/sympy-0.7.5_git-py3.3.egg/sympy/functions/elementary/miscellaneous.py:334:
On Sat, Oct 18, 2014 at 12:16 AM, Chris Smith smi...@gmail.com wrote:
Yes, that would be a good change to make.
On Friday, October 17, 2014 9:10:28 AM UTC-5, Amit Saha wrote:
Hi,
As per https://github.com/sympy/sympy/issues/6212, is_real is
deprecated. I just found this:
s = FiniteSet
Hi all,
I am just starting to learn about implementing user defined functions
using the Function class:
from sympy import Function
class fx(Function):
@classmethod
def eval(cls, x):
if x == 0:
return 0
else:
return x+2
I am wondering if
/sympy/pull/7605
Will be keen to hear your comments.
Thanks,
Amit.
Aaron Meurer
On Thu, Jun 12, 2014 at 8:06 PM, Amit Saha amitsaha...@gmail.com wrote:
On Thu, Jun 12, 2014 at 7:26 AM, Sergey Kirpichev skirpic...@gmail.com
wrote:
On Monday, June 9, 2014 5:35:34 AM UTC+4, Amit Saha
On Thu, Jun 12, 2014 at 7:26 AM, Sergey Kirpichev skirpic...@gmail.com wrote:
On Monday, June 9, 2014 5:35:34 AM UTC+4, Amit Saha wrote:
I came across this:
from sympy import Float
Float(1.25343)
1.253430
'{0:.2f}'.format(Float(1.25343))
Traceback (most recent call last
than with itertools.permutations().
Aaron Meurer
On Thu, Jun 12, 2014 at 8:06 PM, Amit Saha amitsaha...@gmail.com wrote:
Hello,
On Thu, Jun 12, 2014 at 3:49 AM, Christophe Bal projet...@gmail.com
wrote:
Hello.
What do you want to do ?
I want to know if there are any SymPy methods
Hello,
I am looking for the simplest SymPy alternative to this:
import itertools
for p in itertools.permutations([1, 2, 4]):
... print(p)
...
(1, 2, 4)
(1, 4, 2)
(2, 1, 4)
(2, 4, 1)
(4, 1, 2)
(4, 2, 1)
I have a feeling this may be obvious and i am asking here without
spending sufficient
I came across this:
from sympy import Float
Float(1.25343)
1.253430
'{0:.2f}'.format(Float(1.25343))
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: Unknown format code 'f' for object of type 'str'
Is this known/expected? Shouldn't it work?
This works:
Hello all,
FiniteSet's methods such as is_subset, is_superset, intersect differ
from CPython's standard set interface methods which expose the same
functionality. This will break any third party code which was written
and tested with the standard set interface, when attempting to use it
with
Hello all,
Consider the program below which is an attempt to prove that the angle
inscribed at the center by any two points on a circle is always twice
the angle inscribed on the circumference:
from sympy import Circle, Point, Segment
def prove_theorem():
c = Point(0, 0)
c1 =
On Sun, May 4, 2014 at 12:00 AM, Akshay akshaynukal...@gmail.com wrote:
There is a way to reduce the variance, instead of evaluating at the end i.e
print((pcq/prq).evalf()) evaluate the random points in the beginning itself
p = c1.random_point().evalf()
q = c1.random_point().evalf()
r =
On Sun, Apr 27, 2014 at 3:01 AM, jiju jijutdas2...@gmail.com wrote:
Thanks Amit and Aaron for the help provided.
You may find this useful as well:
http://docs.sympy.org/latest/guide.html#ondrej-s-approach
--
http://echorand.me
--
You received this message because you are subscribed to the
On Thu, Apr 24, 2014 at 5:30 AM, jiju jijutdas2...@gmail.com wrote:
Hi,
Is there any way to obtain all the steps involved in the mathematical
calculations from sympy?
I think what you mean is that you want to see what is happening behind
the scenes when you use a SymPy function or method? I
Hello,
Consider the following:
expr=input('Enter a mathematical expression: ')
Enter a mathematical expression: x**2 + 3x + x**3 + 2x
expr = sympify(expr)
Traceback (most recent call last):
File pyshell#146, line 1, in module
expr = sympify(expr)
File
Hello all,
In my early days of exploring SymPy, I found often that one *could*
use strings as arguments to various SymPy's functions, instead of
passing Symbol objects. A case in point is the solve() function. For
example:
expr = input('Enter an expression: ')
Enter an expression: x + 3*y - 6
On Wed, Apr 23, 2014 at 7:21 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Tue, Apr 22, 2014 at 3:28 PM, Amit Saha amitsaha...@gmail.com wrote:
Hello all,
In my early days of exploring SymPy, I found often that one *could*
use strings as arguments to various SymPy's functions, instead
On Wed, Apr 23, 2014 at 8:01 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Tue, Apr 22, 2014 at 4:58 PM, Amit Saha amitsaha...@gmail.com wrote:
On Wed, Apr 23, 2014 at 7:21 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Tue, Apr 22, 2014 at 3:28 PM, Amit Saha amitsaha...@gmail.com wrote:
Hello
On Sun, Apr 13, 2014 at 6:19 PM, Amit Saha amitsaha...@gmail.com wrote:
On Sun, Apr 13, 2014 at 6:40 AM, Aaron Meurer asmeu...@gmail.com wrote:
It would be better to submit patches as pull requests, even if you do
not know how to complete them. It is much easier to comment on code in
pull
On Tue, Apr 15, 2014 at 2:43 AM, Aaron Meurer asmeu...@gmail.com wrote:
I can reproduce it. It's definitely a bug. I'm guessing plot_implicit
doesn't have a well-defined way of choosing which variable is x and which
variable is y.
That indeed is the case. I thought of a fairly straightforward
On Sun, Mar 30, 2014 at 7:09 PM, Amit Saha amitsaha...@gmail.com wrote:
Hello,
Consider the following program:
Draw a line given two points it passes through
from sympy import Point, Line, plot_implicit
def draw_line(x1, y1, x2, y2):
p1 = Point(x1, y1)
p2 = Point(x2, y2
Hello,
Consider the following program:
Draw a line given two points it passes through
from sympy import Point, Line, plot_implicit
def draw_line(x1, y1, x2, y2):
p1 = Point(x1, y1)
p2 = Point(x2, y2)
l = Line(p1, p2)
eqn = l.equation()
print(eqn)
plot_implicit(eqn)
Hello,
I came across this today:
The problem:
from sympy import plot_implicit, Point, Line
p1 = Point(1, 2)
plot_implicit(Line(p1, slope=1).equation(), legend=True)
/usr/lib64/python3.3/site-packages/matplotlib/axes.py:4749:
UserWarning: No labeled objects found. Use label='...' kwarg on
Thanks, I have submitted the pull request with the change:
https://github.com/sympy/sympy/pull/7346
Suggestions and comments appreciated.
--
You received this message because you are subscribed to the Google Groups
sympy group.
To unsubscribe from this group and stop receiving emails from it,
Hello,
I was going through how ProductSet is implemented and couple of things
struck me as odd. First, the string/repr representation:
s = FiniteSet(1, 2)
t = FiniteSet(2, 3)
p = ProductSet(s, t)
p
{1, 2} x {2, 3}
IMO, a product set is a set (at least Wikipedia tells me so). So,
shouldn't
On Wed, Mar 26, 2014 at 11:59 PM, Sergey Kirpichev skirpic...@gmail.com wrote:
On Wednesday, March 26, 2014 5:18:41 PM UTC+4, Amit Saha wrote:
IMO, a product set is a set (at least Wikipedia tells me so). So,
shouldn't it rather be the following?
{(1,2), (1,3), (2,2), (2,3)}
1
Is there any reason why the subset() method in sympy/core/sets.py is
not is_subset() (considering that it always returns a boolean) and
also consistent with some of the other is_ methods as well.?
Best,
Amit.
--
http://echorand.me
--
You received this message because you are subscribed to
On Sat, Dec 14, 2013 at 6:53 AM, Aaron Meurer asmeu...@gmail.com wrote:
Sounds good to me. Can you submit a pull request?
Thanks, Aaron. Done finally: https://github.com/sympy/sympy/pull/7327
Best,
Amit.
Aaron Meurer
On Mon, Nov 11, 2013 at 1:37 PM, Amit Saha amitsaha...@gmail.com wrote
Hello,
Consider the following:
Python 3:
from sympy import Line, Point
line = Line(Point(1,0), slope = 1)
Point.is_collinear(line)
True
Python 2:
from sympy import Line
line = Line(Point(1,0), slope = 1)
Point.is_collinear(line)
Traceback (most recent call last):
File stdin, line 1,
On Mon, Nov 11, 2013 at 11:05 PM, Amit Saha amitsaha...@gmail.com wrote:
On Mon, Nov 11, 2013 at 9:13 PM, Amit Saha amitsaha...@gmail.com wrote:
Hello,
Consider the following:
Python 3:
from sympy import Line, Point
line = Line(Point(1,0), slope = 1)
Point.is_collinear(line)
True
Hello,
From what I can see, if I want to choose different colors for my
plots, I would have to do something like this:
p1 = plot(x, show=False, line_color='r')
p2 = plot(x**2, show=False, line_color='b')
# append the plot p1 to p2 or vice-versa
p2.show()
I cannot do something like this:
On Sun, Sep 29, 2013 at 12:14 PM, Amit Saha amitsaha...@gmail.com wrote:
Hi,
I am trying to find a way to do something which is usually the default
behavior in matplotlib. That is, when I show() multiple plots in a
single figure, they are shown in different colors automatically. For
example
Hi,
I am trying to find a way to do something which is usually the default
behavior in matplotlib. That is, when I show() multiple plots in a
single figure, they are shown in different colors automatically. For
example:
import matplotlib.pyplot as plt
plt.plot([1,2,3])
[matplotlib.lines.Line2D
On Sun, Sep 29, 2013 at 12:14 PM, Amit Saha amitsaha...@gmail.com wrote:
Hi,
I am trying to find a way to do something which is usually the default
behavior in matplotlib. That is, when I show() multiple plots in a
single figure, they are shown in different colors automatically. For
example
On Wed, Jul 10, 2013 at 1:24 AM, Aaron Meurer asmeu...@gmail.com wrote:
Yep, strings often (but won't always!) work as input. See
https://github.com/sympy/sympy/wiki/Idioms-and-Antipatterns#strings-as-input.
Thanks. Yeah, I have learned that from one of my earlier posts to the
forum. In this
On Sun, Jul 7, 2013 at 12:03 PM, Aaron Meurer asmeu...@gmail.com wrote:
On Sat, Jul 6, 2013 at 5:45 PM, Amit Saha amitsaha...@gmail.com wrote:
On Sun, Jul 7, 2013 at 4:50 AM, Aaron Meurer asmeu...@gmail.com wrote:
I think you are confusing the assumptions system and the numeric classes
On Thu, Jul 11, 2013 at 12:26 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Jul 10, 2013, at 9:17 AM, Amit Saha amitsaha...@gmail.com wrote:
On Wed, Jul 10, 2013 at 1:24 AM, Aaron Meurer asmeu...@gmail.com wrote:
Yep, strings often (but won't always!) work as input. See
https://github.com
On Thu, Jul 11, 2013 at 12:28 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Jul 10, 2013, at 9:21 AM, Amit Saha amitsaha...@gmail.com wrote:
On Sun, Jul 7, 2013 at 12:03 PM, Aaron Meurer asmeu...@gmail.com wrote:
On Sat, Jul 6, 2013 at 5:45 PM, Amit Saha amitsaha...@gmail.com wrote
Hi,
I almost accidentally found this to work:
from sympy import solve
expr='x*2 + y + 5'
solve(expr,'x')
[-y/2 - 5/2]
Upon investigation, I found this in solvers.py in the solve() function:
def _sympified_list(w):
return map(sympify, w if iterable(w) else [w])
which pretty much
Hi,
After I run the bin/use2to3 script, I had to manually set the
following variables in py3k-sympy/doc/Makefile:
PYTHON=python3.3
SPHINXBUILD = PYTHONPATH=..:$(PYTHONPATH) sphinx-build-3.3
The reasons are obvious.
So, perhaps we could have some 'sed' magic incorporated in bin/use2to3 ?
I am
Hello,
I have been playing a bit with the number classes, and I have come
across Integer, Real and Rational classes. Comparing to their native
counterparts in CPython, I understand they correspond to int, float
and the Fraction (from the fractions) objects respectively. Good so
far, I also looked
This is something which was not obvious to me (or I don't read well),
so posting it in case it helps someone:
from sympy import plot
from sympy import Symbol
x=Symbol('x')
p = plot(2*x+3,show=False)
Now, you have a object of the Plot class returned in p.
So, you can either see the graph
On Sun, Jul 7, 2013 at 4:50 AM, Aaron Meurer asmeu...@gmail.com wrote:
I think you are confusing the assumptions system and the numeric classes in
SymPy.
First, for the numeric classes, SymPy does not have a complex type. Rather,
we just have the object I, which represents sqrt(-1). If you
, Amit Saha amitsaha...@gmail.com wrote:
This is something which was not obvious to me (or I don't read well),
so posting it in case it helps someone:
from sympy import plot
from sympy import Symbol
x=Symbol('x')
p = plot(2*x+3,show=False)
Now, you have a object of the Plot class
to go over the documentation for sending a pull
request and will try to make some small contributions.
Aaron Meurer
On Sat, Jul 6, 2013 at 12:31 PM, Amit Saha amitsaha...@gmail.com wrote:
This is something which was not obvious to me (or I don't read well),
so posting it in case it helps
Hello,
Is is possible to force the order of terms in an expression to be
reverse of the order as is chosen by default i.e.highest to lowest?
For example:
expr=3 + x**2 + x
expr
x**2 + x + 3
Is there a method to store or even simply display expr as:
3 + x + x**2
without resorting to any
which can be used to change that order
?
Also, if an expression contains an O() term, it is automatically printed
backwards.
Aaron Meurer
On Fri, Jul 5, 2013 at 12:59 PM, Ondřej Čertík ondrej.cer...@gmail.com
wrote:
On Fri, Jul 5, 2013 at 11:12 AM, Amit Saha amitsaha...@gmail.com wrote
On Sat, Jul 6, 2013 at 10:18 AM, Amit Saha amitsaha...@gmail.com wrote:
On Sat, Jul 6, 2013 at 10:02 AM, Aaron Meurer asmeu...@gmail.com wrote:
If you use isympy, use the -o rev-lex commandline flag. If you use
init_printing, use init_printing(order='rev-lex').
Can confirm that works:
from
On Sat, Jul 6, 2013 at 10:33 AM, Aaron Meurer asmeu...@gmail.com wrote:
No, the printing is separated out from the objects in SymPy.
Thanks, Aaron.
Aaron Meurer
On Fri, Jul 5, 2013 at 7:18 PM, Amit Saha amitsaha...@gmail.com wrote:
On Sat, Jul 6, 2013 at 10:02 AM, Aaron Meurer asmeu
I made some formatting changes to the pretty printing wiki:
https://github.com/sympy/sympy/wiki/Pretty-Printing
Anyone knows where the images are which are currently linked?
Thanks,
Amit.
--
http://echorand.me
--
You received this message because you are subscribed to the Google Groups
as TBD.
Hope that's fine.
Aaron Meurer
On Fri, Jul 5, 2013 at 7:55 PM, Amit Saha amitsaha...@gmail.com wrote:
I made some formatting changes to the pretty printing wiki:
https://github.com/sympy/sympy/wiki/Pretty-Printing
Anyone knows where the images are which are currently linked
On Wed, Jul 3, 2013 at 8:11 AM, Ondřej Čertík ondrej.cer...@gmail.com wrote:
On Tue, Jul 2, 2013 at 3:42 PM, Amit Saha amitsaha...@gmail.com wrote:
On Wed, Jul 3, 2013 at 2:29 AM, Ondřej Čertík ondrej.cer...@gmail.com
wrote:
On Tue, Jul 2, 2013 at 8:33 AM, Amit Saha amitsaha...@gmail.com
On Thu, Jul 4, 2013 at 1:42 AM, Ondřej Čertík ondrej.cer...@gmail.com wrote:
On Wed, Jul 3, 2013 at 6:42 AM, Amit Saha amitsaha...@gmail.com wrote:
On Wed, Jul 3, 2013 at 8:11 AM, Ondřej Čertík ondrej.cer...@gmail.com
wrote:
On Tue, Jul 2, 2013 at 3:42 PM, Amit Saha amitsaha...@gmail.com
Hi Ondřej,
On Tue, Jul 2, 2013 at 1:30 AM, Ondřej Čertík ondrej.cer...@gmail.com wrote:
Hi Amit,
On Sat, Jun 29, 2013 at 4:32 AM, Amit Saha amitsaha...@gmail.com wrote:
Hello,
Currently the is_perpendicular() method is defined, like so:
a1, b1, c1 = l1.coefficients
On Wed, Jul 3, 2013 at 2:29 AM, Ondřej Čertík ondrej.cer...@gmail.com wrote:
On Tue, Jul 2, 2013 at 8:33 AM, Amit Saha amitsaha...@gmail.com wrote:
Hi Ondřej,
On Tue, Jul 2, 2013 at 1:30 AM, Ondřej Čertík ondrej.cer...@gmail.com
wrote:
Hi Amit,
On Sat, Jun 29, 2013 at 4:32 AM, Amit Saha
On Wed, Jul 3, 2013 at 8:11 AM, Ondřej Čertík ondrej.cer...@gmail.com wrote:
On Tue, Jul 2, 2013 at 3:42 PM, Amit Saha amitsaha...@gmail.com wrote:
On Wed, Jul 3, 2013 at 2:29 AM, Ondřej Čertík ondrej.cer...@gmail.com
wrote:
On Tue, Jul 2, 2013 at 8:33 AM, Amit Saha amitsaha...@gmail.com
Hello,
Currently the is_perpendicular() method is defined, like so:
a1, b1, c1 = l1.coefficients
a2,
b2, c2 = l2.coefficients
return
bool(simplify(a1*a2 + b1*b2) == 0)
Now
Hello,
This is more of a note of my findings and also just implicitly
verifying whether I am doing the right thing.
Problem: I want to find whether a point lies on a circle.
I was hoping that like Linear entity objects, the circle/ellipse would
have a contains() method as well. But, contains()
Hello,
I saw a few examples of plotting geometric objects using the pyglet
module here [1]. I also learned that this is not going to be developed
actively going ahead.
Could someone please point to me an example of plotting geometric
objects using the plot() function? (Is it supported yet?)
June 2013 12:12, Amit Saha amitsaha...@gmail.com wrote:
Hello,
I saw a few examples of plotting geometric objects using the pyglet
module here [1]. I also learned that this is not going to be developed
actively going ahead.
Could someone please point to me an example of plotting geometric
On Mon, Jun 24, 2013 at 8:27 PM, Amit Saha amitsaha...@gmail.com wrote:
Hello Stefan,
On Mon, Jun 24, 2013 at 8:21 PM, Stefan Krastanov
krastanov.ste...@gmail.com wrote:
It is not supported yet.
If you want, you can use the old plotting module (the only difference
is the import path
1 - 100 of 105 matches
Mail list logo