> numpy people use
> import numpy as np
> and often
> import scipy as sp
> and
> from matplotlib import pyplot as plt
> How about
> import sympy as S
> (for my part I still use import numpy as N -- historical relict from
> Numeric and numarray)
> Both lower case "s" and unabbreviated "sympy" seem bad choices for me ...
How about: 'smp'? 'S' is capital, and I like to keep that for classes. In
addition, it is very short, and thus it seems easy to overright it.
Gaël
PS: I am aware the SMP means 'symetric multiprocessor'.
I don't have any strong feelings on this, as long as it is explicit,
e.g. all A, B, C is fine.
I myself just use a combination of A/B. I don't like C much. Saving 3
characters, e..g "np" instead of "numpy" --- well, I don't find it
worthy. Saving 2 characters in "smp" instead of "sympy", well, that
sounds even less worthy to me. But as I said, I think it's up to you.
I think we can even combine all A/B/C in the docs.
Ondrej
There is a problem with mixing sympy and numpy together. E.g. for
example we use it in femhub (femhub.org) and it is a source of common
confusion, if sin(x) is a symbolic sin(x), or if it is numeric (numpy)
sin(x). E.g.
from sympy import *
from numpy import *
is simply confusing. So, I would do it the other way round --- I would
put there a note that you can use isympy, where things are imported
for you automatically, but in documentation I would use explicit
imports, so that users can just copy & paste it in their scripts and
it would work.
Ondrej