Yep that works... Thnx a lot Sean, Aaron and Chris
On Wed, Feb 29, 2012 at 12:35 PM, Chris Smith wrote:
> also...
>
> >>> numer(a/y)
> a
> >>> denom(a/y)
> y
>
> fraction, numer and denom don't re-write the expression as a fraction:
>
> >>> numer(a/y+x)
> a/y + x
>
> --
> You received this messa
also...
>>> numer(a/y)
a
>>> denom(a/y)
y
fraction, numer and denom don't re-write the expression as a fraction:
>>> numer(a/y+x)
a/y + x
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To
A better way is to use .as_numer_denom(), which also works on symbolic
fractions:
In [380]: Rational(3, 4).as_numer_denom()
(3, 4)
In [381]: (x/y).as_numer_denom()
(x, y)
There's also the fraction() function, which does almost the same thing:
In [382]: fraction(Rational(3, 4))
(3, 4)
In [383]:
This is documented in the online docs [1] and in the docstring. If you're
using ipython, you can use their introspection to check the docstring, for
example, as '?Rational'. From the docstring:
**Low-level**
Access numerator and denominator as .p and .q:
>>> r = Rational(3,4)
>>> r
3/4
>>> r.p
3
If 'f' is a fraction, can someone please tell me how to separate the
numerator and denominator of f I tried f.numerator and f.denominator
but it doesnt seem to work...
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To view this discussion on th
I updated it, and also the webpage and sympy-bot (though I do not have
the permissions to update the review site). Let me know if you see
any more that are out of date.
Aaron Meurer
On Tue, Feb 28, 2012 at 3:52 PM, Aaron Meurer wrote:
> No, all copyrights should be updated. I guess we missed th
No, all copyrights should be updated. I guess we missed this one.
Aaron Meurer
Sent from my iPhone.
On Feb 28, 2012, at 3:02 PM, Sergiu Ivanov wrote:
> Hello,
>
> I've just noticed that live.sympy.org says at the bottom "Copyright
> (c) 2011". Is this year all right, or should it be bumped to
Hello,
I've just noticed that live.sympy.org says at the bottom "Copyright
(c) 2011". Is this year all right, or should it be bumped to 2012?
Sergiu
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to sympy@googlegro
On Tue, Feb 28, 2012 at 7:21 PM, Aaron Meurer wrote:
> On Tue, Feb 28, 2012 at 9:17 AM, Sergiu Ivanov
> wrote:
>> On Tue, Feb 28, 2012 at 5:29 PM, Ronan Lamy wrote:
>>> Le mardi 28 février 2012 à 20:00 +0530, prateek papriwal a écrit :
>>>
>>> O() with multiple symbols is tricky, full of bugs an
On Tue, Feb 28, 2012 at 9:17 AM, Sergiu Ivanov
wrote:
> On Tue, Feb 28, 2012 at 5:29 PM, Ronan Lamy wrote:
>> Le mardi 28 février 2012 à 20:00 +0530, prateek papriwal a écrit :
>>
>> O() with multiple symbols is tricky, full of bugs and not very useful.
>>
>> "h(x, y) in O(f(x, y), x, y)" means t
On Tue, Feb 28, 2012 at 9:05 AM, Gaurav Sathe wrote:
> Hi Aaron,
>
> Really sorry for the late reply... I was busy with my mid-term tests for the
> last couple of weeks so couldn't reply...
>
> Well, to describe my background in abstract algebra... I have done a course
> on 'Real Analysis' which b
However, even outside the git repo (i.e, in the latest release and so
on), round() is a Python built-in, and works the same way. We will
likely rename the SymPy round() to something else because of this.
See http://code.google.com/p/sympy/issues/detail?id=3086.
Aaron Meurer
On Tue, Feb 28, 2012
On Tue, Feb 28, 2012 at 5:29 PM, Ronan Lamy wrote:
> Le mardi 28 février 2012 à 20:00 +0530, prateek papriwal a écrit :
>
> O() with multiple symbols is tricky, full of bugs and not very useful.
>
> "h(x, y) in O(f(x, y), x, y)" means that |h(x, y)| < C*|f(x, y)| for
> some real constant C over so
Hi Aaron,
Really sorry for the late reply... I was busy with my mid-term tests for
the last couple of weeks so couldn't reply...
Well, to describe my background in abstract algebra... I have done a course
on 'Real Analysis' which basically dealt with the concept of Metric Spaces
and their detaile
On Feb 23, 6:50 am, "krastanov.ste...@gmail.com"
wrote:
> On 22 February 2012 20:30, Matthew Rocklin wrote:> Hi
> Krastaonv
>
> > Thanks for the feedback. You bring up a number of important issues. I'd like
> > to respond to the main one
>
> > I completely agree that the solution needs to clea
Le mardi 28 février 2012 à 20:00 +0530, prateek papriwal a écrit :
> one more thing ;;
> O(x**2+y,x,y) + O(x+y,x,y)
> gives O(y+x**2,x,y)
>
> why so?
O() with multiple symbols is tricky, full of bugs and not very useful.
"h(x, y) in O(f(x, y), x, y)" means that |h(x, y)| < C*|f(x, y)| for
some
On Tue, Feb 28, 2012 at 4:03 PM, prateek papriwal
wrote:
>
> but then what does O(a,b,c) means
Could you please be more detailed as to the domain you are working in?
My first thought when I saw your question was that Ronan has given you
the answer which you require. However, I've never seen the
one more thing ;;
O(x**2+y,x,y) + O(x+y,x,y)
gives O(y+x**2,x,y)
why so?
On Tue, Feb 28, 2012 at 7:42 PM, prateek papriwal wrote:
> also do we have theta Notation also in Sympy?
>
>
> On Tue, Feb 28, 2012 at 7:33 PM, prateek papriwal <
> papriwalprat...@gmail.com> wrote:
>
>> but then what does
also do we have theta Notation also in Sympy?
On Tue, Feb 28, 2012 at 7:33 PM, prateek papriwal wrote:
> but then what does O(a,b,c) means
>
>
>
> On Tue, Feb 28, 2012 at 7:30 PM, Ronan Lamy wrote:
>
>> Le mardi 28 février 2012 à 19:25 +0530, prateek papriwal a écrit :
>> > what is O notation ?
but then what does O(a,b,c) means
On Tue, Feb 28, 2012 at 7:30 PM, Ronan Lamy wrote:
> Le mardi 28 février 2012 à 19:25 +0530, prateek papriwal a écrit :
> > what is O notation ?
>
> Typing "O?" in isympy:
>
> Type: WithAssumptions
> Base Class:
> String Form:
> Namespace: Interactive
>
Le mardi 28 février 2012 à 19:25 +0530, prateek papriwal a écrit :
> what is O notation ?
Typing "O?" in isympy:
Type: WithAssumptions
Base Class:
String Form:
Namespace: Interactive
File: /home/ronan/dev/sympy/sympy/series/order.py
Docstring:
Represents the limiting behavior of so
what is O notation ?
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at
Yes, this has been implemented recently and can be found in the git
repository. It is, in fact, called round().
Help on function round in module sympy.functions.elementary.miscellaneous:
round(x, p=0)
Return x rounded to the given decimal place. If x is not an Expr,
Python's round funct
is there any round() function in sympy?
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to
sympy+unsubscr...@googlegroups.com.
For more options, vi
24 matches
Mail list logo