So far, I've coded up an import_module function, that wraps the try,
except ImportError logic into a single unified function. It has
support for checking the module version and the Python version and
returning None if they are too old, even if the module is installed,
and it also supports raising
Hi everyone,
I have currently implemented the improved Wigner d matrix method and
included tests for this, the Wigner D function and the rewrite and represent
functions which are improved in this pull request. If anyone could do any
final testing and review, I'd appreciate it. Thanks.
https://gith
Chris,
I got it to work, solution is below. Thanks for all your help... sympy rocks!!!.
Cathal
import sympy
from sympy import Rational
# Convert to Rational
def rat(d):
return Rational(str(d))
# Calculate the perpendicular distance from the point (lat, lon) to
the line defined by the point
Chris,
when I execute your code I get the error: TypeError: sympify() got an
unexpected keyword argument 'rational'.
I installed sympy using apt-get install python-sympy and synaptic
reports 0.6.7-1.1 as the installed version.
When I execute ?S I don't see any options for rational.
Call def: S(a
Aaron,
sorry its not actually a Google thing.
http://en.wikipedia.org/wiki/Mercator_projection
Cathal
--
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 e
Sometimes you have two sympy installations, e.g. one in site-packages and
one somewhere else. Figuring out which one is getting used is the trick. I
haven't really spent the time to figure out how to get my IDE to use the one
that is in my git directory. I just know what I have to do to use the git
Seem like it would be more consistent to raise an ImportError rather
than return None. That would also mean less change to existing code.
Thinking a bit further, could this be done in an import hook (I
haven't done one myself, so not sure)?
Ted
On 2011-06-22, at 02:09, Aaron Meurer wrote
On Wed, Jun 22, 2011 at 12:09 AM, Aaron Meurer wrote:
> So far, I've coded up an import_module function, that wraps the try,
> except ImportError logic into a single unified function. It has
> support for checking the module version and the Python version and
> returning None if they are too old,
Hi everyone,
Are there any plans to include graph theory in future versions of
sympy?
The reason I ask is I've found the need to test graph isomorphism in a
research project I'm working on. Specifically, I am looking at this
algorithm: http://www.dharwadker.org/tevet/isomorphism/ I am
considerin
On Wed, Jun 22, 2011 at 12:48 PM, Sam Magura wrote:
> Hi everyone,
>
> Are there any plans to include graph theory in future versions of
> sympy?
Graph theory in sympy would be nice but are you aware of networkx?
In any case, I recommend you ask Dima Pasechnik for his
opinion on implementation a
I think he was not using the git version at all. To get those features Chris
mentioned, you need to use the development version, or else use the 0.7.0
version that will be coming out in a few days.
Aaron Meurer
On Jun 22, 2011, at 5:57 AM, Chris Smith wrote:
> Sometimes you have two sympy ins
On Jun 22, 2011, at 6:55 AM, Ted Horst wrote:
> Seem like it would be more consistent to raise an ImportError rather than
> return None. That would also mean less change to existing code.
That would defeat the whole purpose of the function, except when we need to
check for versions or you w
On Wed, Jun 22, 2011 at 1:02 AM, Sean Vig wrote:
> Hi everyone,
> I have currently implemented the improved Wigner d matrix method and
> included tests for this, the Wigner D function and the rewrite and represent
> functions which are improved in this pull request. If anyone could do any
> final
Thanks for the heads-up Dmitrii. That algorithm probably would be more well
known if it had really shown that the graph isomorphism problem was in P.
I'll probably end up using either the algorithm in Sage or the one in
networkx.
On Wed, Jun 22, 2011 at 8:03 PM, Dima Pasechnik wrote:
> Hi there
Yes, seeing as the same person has claimed to have solved P vs. NP,
found a non-computerized proof of the four color theorem, and gives a
grand unification theory (hover over "Research" at the top of the
page), none of which are cited by anyone but himself (see
http://scholar.google.com/scholar?hl=
Hi,
Just returned from being out of town for 4 days. I will try to get
caught up on sympy things tomorrow.
Brian
On Sun, Jun 19, 2011 at 10:42 PM, Aaron Meurer wrote:
> The way the quantum code is written, it's not very easy to disable
> numpy globally. I could do it, but it would require cop
OK. You can follow my fixes at my external branch (it's almost ready
for review).
Another question that came up when doing this: how do I test the
circuitplot module to make sure it works? I didn't see any tests or
examples that used it anywhere.
Aaron Meurer
On Wed, Jun 22, 2011 at 11:47 PM,
17 matches
Mail list logo