This is literally my first program using sympy, based on an example from my
calculus class:
from sympy import *
def main():
x=symbols("x")
f=exp(x**3)*cos(x**6)
print(series(f,x,0,14))
print(series(f,x,0,19))
if __name__ == "__main__":
main()
The output:
1 + x**3 + x**6/2
On Sat, Jan 30, 2016 at 09:28:54PM -0700, Ondřej Čertík wrote:
> It is not practical to have all ~450 contributors in the copyright
> statement, so we have just "SymPy Development Team" and then all the
> authors are in the AUTHORS files
Perhaps, that's fine for your authors. But, thanks to you,
is there SymPy code of conduct? Especially since SymPy is one of NumFOCUS
projects:
http://www.numfocus.org/code-of-conduct.html
On Sunday, January 31, 2016 at 10:01:10 AM UTC-6, Sergey Kirpichev wrote:
>
> On Sat, Jan 30, 2016 at 09:28:54PM -0700, Ondřej Čertík wrote:
> > It is not practical t
Hi Denis,
On Sun, Jan 31, 2016 at 9:49 AM, Denis Akhiyarov
wrote:
> is there SymPy code of conduct? Especially since SymPy is one of NumFOCUS
> projects:
>
> http://www.numfocus.org/code-of-conduct.html
We are in the process of adopting one. We will update this list once
we adopt it and publish
Hi Swdrury,
On Sun, Jan 31, 2016 at 5:04 AM, wrote:
> This is literally my first program using sympy, based on an example from my
> calculus class:
>
> from sympy import *
>
> def main():
> x=symbols("x")
> f=exp(x**3)*cos(x**6)
> print(series(f,x,0,14))
> print(series(f,x,0,19))
http://pythonpodcast.com/aaron-meurer-sympy.html
Jason
moorepants.info
+01 530-601-9791
--
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, send an email
to sympy+unsubscr...@googlegroups.
On Sun, Jan 31, 2016 at 8:06 PM, Ondřej Čertík wrote:
> Regarding the legal question that arose in this thread, I have asked here:
> http://programmers.stackexchange.com/questions/308909/how-to-manage-copyright-notices-from-contributors-to-a-bsd-licensed-project
Ondrej, I'm sorry, but it's a wron
Quick question. Is there a way to change what symbols are used for things
like adjoint for a matrix. In latex, it is currently \dagger but I would
rather use "H" or something like that.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe f
Hi Sergey,
On Sun, Jan 31, 2016 at 11:26 AM, Sergey Kirpichev wrote:
> On Sun, Jan 31, 2016 at 8:06 PM, Ondřej Čertík
> wrote:
>> Regarding the legal question that arose in this thread, I have asked here:
>> http://programmers.stackexchange.com/questions/308909/how-to-manage-copyright-notices-f
We have been discussing for a while about adding a code of conduct to
SymPy, so that it is very clear to everyone what kind of conduct we expect
from those who participate in the community. This is something that should
have been done much sooner, but late is better than never.
I have opened https
It looks like version 1.4 was released a few days ago, which I think
is a bit clearer than version 1.3 which you've used in your PR:
https://github.com/ContributorCovenant/contributor_covenant/blob/master/version/latest/code_of_conduct.md
On Sun, Jan 31, 2016 at 3:10 PM, Aaron Meurer wrote:
> We
I didn't use 1.4 because it wasn't clear to me if it had been finalized or
not (and also the npm tool listed on the Contributor Covenant website
downloaded 1.3 for me).
Aaron Meurer
On Sun, Jan 31, 2016 at 4:29 PM, Nathan Goldbaum
wrote:
> It looks like version 1.4 was released a few days ago,
Thanks for sharing that Jason. Aaron: Thank you again for the taking
the time out to review "Doing Math with Python" and recommending it in
the podcast!
On Mon, Feb 1, 2016 at 4:32 AM, Jason Moore wrote:
> http://pythonpodcast.com/aaron-meurer-sympy.html
>
> Jason
> moorepants.info
> +01 530-601
You can subclass the LatexPrinter and modify the method that controls the
adjoint printing to your liking.
See http://docs.sympy.org/dev/modules/printing.html for an example.
Jason
moorepants.info
+01 530-601-9791
On Sun, Jan 31, 2016 at 12:01 PM, Michael Hansen <
michael.schacht.han...@gmail.c
Based on the manual I did something like:
import sympy
from sympy.printing.latex import LatexPrinter
class CustomLatexPrinter(LatexPrinter):
def _print_Adjoint(self, expr):
mat = expr.arg
from sympy.matrices import MatrixSymbol
if not isinstance(mat, MatrixSymbol):
Can you please paste your full code that checks whether this works?
Jason
moorepants.info
+01 530-601-9791
On Sun, Jan 31, 2016 at 5:31 PM, Michael Hansen <
michael.schacht.han...@gmail.com> wrote:
> Based on the manual I did something like:
>
> import sympy
> from sympy.printing.latex import L
import sympy
from sympy.printing.latex import LatexPrinter
class CustomLatexPrinter(LatexPrinter):
def _print_Adjoint(self, expr):
mat = expr.arg
from sympy.matrices import MatrixSymbol
if not isinstance(mat, MatrixSymbol):
return r"\left(%s\right)^H" % sel
This is what you want to do:
In [1]: %paste
import sympy
from sympy.printing.latex import LatexPrinter
class CustomLatexPrinter(LatexPrinter):
def _print_Adjoint(self, expr):
mat = expr.arg
from sympy.matrices import MatrixSymbol
if not isinstance(mat, MatrixSymbol):
omg has the patch
On Sunday, January 31, 2016 at 11:14:33 AM UTC-6, Ondřej Čertík wrote:
>
> Hi Swdrury,
>
> On Sun, Jan 31, 2016 at 5:04 AM, >
> wrote:
> > This is literally my first program using sympy, based on an example from
> my
> > calculus class:
> >
> > from sympy import *
> >
>
That will not work if I want to use it in an interactive session. There I need
the actual latex function overloaded since that is what it seems to call. Is
there a way to do that?
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from th
You can pass in the custom latex printer to init_printing or init_session
as a kwarg.
Jason
Jason
moorepants.info
+01 530-601-9791
On Sun, Jan 31, 2016 at 7:30 PM, Michael Hansen <
michael.schacht.han...@gmail.com> wrote:
> That will not work if I want to use it in an interactive session. Ther
21 matches
Mail list logo