Re: [sympy] given a plane equation to extract the coefficients a,b,c,d

2019-06-25 Thread Lee Smith
Thanks for your prompt response.
Really this is a very simple question.  Consider a plain algebra equation
on 'graph paper'.  Sympy.plot(...) allows for a number of key/value pairs
for stuff like xticks, etc.  However, there is no keyword to on a grid for
the resulting plot.

On Tue, Jun 25, 2019 at 5:10 PM Oscar Benjamin 
wrote:

> I'm not sure exactly what you mean. Does this help?
>
> In [1]: a, b, c, d, x, y, z = symbols('a, b, c, d, x, y, z')
>
> In [2]: eq = a*x + b*y+ c*z - d
>
> In [3]: eq
> Out[3]: a⋅x + b⋅y + c⋅z - d
>
> In [4]: eq.coeff(x)
> Out[4]: a
>
> In [5]: eq.coeff(y)
> Out[5]: b
>
> In [6]: eq.coeff(z)
> Out[6]: c
>
> On Tue, 25 Jun 2019 at 18:13, HGO HGO  wrote:
> >
> > hi
> >
> > is it possible given a plane equation to extract the coefficients
> a,b,c,d ?
> >
> > thank you
> >
> > --
> > 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.com.
> > To post to this group, send email to sympy@googlegroups.com.
> > Visit this group at https://groups.google.com/group/sympy.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/c9d43645-b45e-4690-8997-98f5ea8763a9%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAHVvXxQZedJND3fDZw7e%3D2%2BBPiX69PC2Rn5eni-v1%2BbzOCfH3w%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAJTRwDpd9DbnknbSOzEm%2BffPZaukvwbVyPj%3Dw2eHk-0XeC55Ew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[sympy] Grid in sympy plotting

2019-06-25 Thread Lee Smith
Greetings:

I want to display a grid in a sympy plot.

The sympy.doc page only discusses mesh grids.

On searching through Google, I found only one result that suggested using 
matplotlib.pyplot in addition to the sympy.plot(...) method.

This should be simple and I am surprised that it is not asked more.

Thanks in advance,
lee

-- 
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.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/01a492c1-f8df-4810-b413-063f65ce4fa1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] given a plane equation to extract the coefficients a,b,c,d

2019-06-25 Thread Oscar Benjamin
I'm not sure exactly what you mean. Does this help?

In [1]: a, b, c, d, x, y, z = symbols('a, b, c, d, x, y, z')

In [2]: eq = a*x + b*y+ c*z - d

In [3]: eq
Out[3]: a⋅x + b⋅y + c⋅z - d

In [4]: eq.coeff(x)
Out[4]: a

In [5]: eq.coeff(y)
Out[5]: b

In [6]: eq.coeff(z)
Out[6]: c

On Tue, 25 Jun 2019 at 18:13, HGO HGO  wrote:
>
> hi
>
> is it possible given a plane equation to extract the coefficients a,b,c,d ?
>
> thank you
>
> --
> 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.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/c9d43645-b45e-4690-8997-98f5ea8763a9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAHVvXxQZedJND3fDZw7e%3D2%2BBPiX69PC2Rn5eni-v1%2BbzOCfH3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] Parse Latex doesn't understand '\sqrt[a]{b}'

2019-06-25 Thread Aaron Meurer
The latex parsing is still pretty new. It should not be hard to add
support for this. Please open an issue on the issue tracker.

Aaron Meurer

On Tue, Jun 25, 2019 at 11:13 AM HRISHABH YADAV  wrote:
>
> Hello everyone,
> I wanted to convert a latex expression in sympy expression using parse_latex. 
> But apparently parse_latex doesn't understand 
> r"[[-\\frac{67\\sqrt[8]{a}}{30\\sqrt[8]{z}}]]".
>  Error:-
> sympy.parsing.latex.errors.LaTeXParsingError: I don't understand this
> -\frac{67\sqrt8{a}}{30\sqrt8{z}}
>
> Is there some other way to do this?
>
> 
> Disclaimer: This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom they are 
> addressed. If you have received this email in error please notify the system 
> manager. This message contains confidential information and is intended only 
> for the individual named. If you are not the named addressee you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately by e-mail if you have received this e-mail by mistake and delete 
> this e-mail from your system. If you are not the intended recipient you are 
> notified that disclosing, copying, distributing or taking any action in 
> reliance on the contents of this information is strictly prohibited.
>
> --
> 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.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/25c165e6-d7e4-4189-a529-c515a430d51b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6Km0f-cEd6tJP4mRiVCqQxe-JSURj21taOag7a9cVsayA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[sympy] Parse Latex doesn't understand '\sqrt[a]{b}'

2019-06-25 Thread HRISHABH YADAV
Hello everyone,
I wanted to convert a latex expression in sympy expression using 
parse_latex. But apparently parse_latex doesn't understand 
r"[[-\\frac{67\\sqrt[8]{a}}{30\\sqrt[8]{z}}]]".
 Error:- 
sympy.parsing.latex.errors.LaTeXParsingError: I don't understand this
-\frac{67\sqrt8{a}}{30\sqrt8{z}}

Is there some other way to do this?

-- 
*Disclaimer: *This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error please notify the 
system manager. This message contains confidential information and is 
intended only for the individual named. If you are not the named addressee 
you should not disseminate, distribute or copy this e-mail. Please notify 
the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. If you are not the 
intended recipient you are notified that disclosing, copying, distributing 
or taking any action in reliance on the contents of this information is 
strictly prohibited.

-- 
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.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/25c165e6-d7e4-4189-a529-c515a430d51b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[sympy] given a plane equation to extract the coefficients a,b,c,d

2019-06-25 Thread HGO HGO


hi

is it possible given a plane equation to extract the coefficients a,b,c,d ?

thank you

-- 
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.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/c9d43645-b45e-4690-8997-98f5ea8763a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.