A few month ago I had a script that returned "-
rho*sigma_f*sigma_n" (without the quotes) which with sympy.latex print
a nice formula. Now, after a holiday and a complete reinstall of my
laptop (ubuntu 9.04, python 2.6.2) the script returns
"-1.00*rho*sigma_f*sigma_n" which prints equa
Luke wrote:
> I've published my branch of sympy where I started implementing the
> trig simplification algorithm by Hu et al. I also started working on
> the .eval() methods of sin, cos, and tan, and wrote a lot of tests for
> the behavior that Mathematica gives. Currently,
> py.test sympy/funct
Thanks. I think I understand what this code does. How do you want it
patched? Am I just writing my own alternative to sympy.latex? Are mainvar
and descending keyword arguments to sympy.latex or some other printing
function? I assume not everyone wants their polynomials in order of
descending p
I have an approach. It is fairly rough and not completely working:
In printing/latex.py
def latex(expr, inline=True, matstr=None, matdelim=None, \
mainvar=None, descending=False):
if inline:
if matstr is None:
matstr = 'smallmatrix'
if matdelim is None:
OK, I further hacked up compare_exponents and think I have a solution:
def compare_exponents(a, b):
print('')
print('a = %s' % a)
print('b = %s' % b)
print('mainvar = %s' % mainvar)
p1, p2, p3 =
OK, there is probably a cleaner way to implement this, but the following
seems to be working:
def _print_Add(self, expr):
args = list(expr.args)
if self._mainvar is not None:
mainvar = self._mainvar
def compare_exponents(a, b):
p1, p2, p3
Aaron S. Meurer wrote:
> On Jun 1, 2009, at 9:33 PM, Joel C. Salomon wrote:
>> • Is there a Python interface that will allow the use of Unicode symbols
>> for pretty-printing?
>
> I believe unicode is built into python, so you shouldn't have a
> problem there.
The documentation suggests output li
On my machine (I am not running Windows, so I cannot be certain if it
will be the same for you), it makes a difference if I run isympy or
just import sympy in python or ipython. isympy gives unicode output.
Also run isympy --help. You can run isympy -p unicode (I don't know
how this is
On Tue, Jun 2, 2009 at 4:48 AM, Fabian Pedregosa wrote:
>
> Luke wrote:
>> I've published my branch of sympy where I started implementing the
>> trig simplification algorithm by Hu et al. I also started working on
>> the .eval() methods of sin, cos, and tan, and wrote a lot of tests for
>> the b
On Tue, Jun 2, 2009 at 3:16 AM, janwillem wrote:
>
> A few month ago I had a script that returned "-
> rho*sigma_f*sigma_n" (without the quotes) which with sympy.latex print
> a nice formula. Now, after a holiday and a complete reinstall of my
> laptop (ubuntu 9.04, python 2.6.2) the script retur
On Tue, Jun 2, 2009 at 8:25 AM, Ryan Krauss wrote:
> OK, there is probably a cleaner way to implement this, but the following
> seems to be working:
>
> def _print_Add(self, expr):
> args = list(expr.args)
> if self._mainvar is not None:
> mainvar = self._mainvar
>
Hi Joel,
On Tue, Jun 2, 2009 at 9:16 AM, Joel C. Salomon wrote:
>
> Aaron S. Meurer wrote:
>> On Jun 1, 2009, at 9:33 PM, Joel C. Salomon wrote:
>>> • Is there a Python interface that will allow the use of Unicode symbols
>>> for pretty-printing?
>>
>> I believe unicode is built into python, so
I was thinking the same thing about making it work for all printers.
I will read the patch howto tomorrow and hopefully submit shortly after
that
On Tue, Jun 2, 2009 at 12:30 PM, Ondrej Certik wrote:
> On Tue, Jun 2, 2009 at 8:25 AM, Ryan Krauss wrote:
> > OK, there is probably a cleaner w
On Tue, Jun 2, 2009 at 12:04 PM, Ryan Krauss wrote:
> I was thinking the same thing about making it work for all printers.
>
> I will read the patch howto tomorrow and hopefully submit shortly after
> that
Ok, excellent. If you need any help with git, just ask.
Ondrej
--~--~-~--~-
Ondrej Certik wrote:
> Try this in your terminal:
>
> In [1]: print(u'\u2320')
> ⌠
>
> Does it work? If so, then it should be possible to get unicode working
> in windows.
Meanwhile, Aaron S. Meurer wrote:
> On my machine (I am not running Windows, so I cannot be certain if it
> will be the same
On Tue, Jun 2, 2009 at 1:42 PM, Joel C. Salomon wrote:
>
> Something there is that doesn’t like an α.
Try this:
In [18]: print u'\u03b1'
---> print(u'\u03b1')
α
Does it work? If it works, then your terminal seems to be working with
unicode, and we have a bug in sympy, that we should fix.
On Tue, Jun 2, 2009 at 3:51 PM, Ondrej Certik wrote:
> On Tue, Jun 2, 2009 at 1:42 PM, Joel C. Salomon
> wrote:
>> Something there is that doesn’t like an α.
>
> Try this:
>
> In [18]: print u'\u03b1'
> ---> print(u'\u03b1')
> α
>
> Does it work? If it works, then your terminal seems to be
Hi,
On Tue, Jun 02, 2009 at 03:42:49PM -0400, Joel C. Salomon wrote:
> > C:\Users\chesky>python c:\Hacking\Python26\Scripts\isympy -p Unicode
> >
> > Documentation can be found at http://sympy.org/
> >
> > In [1]: print(u'\u2320')
> > ⌠
> >
> > In [2]: a = Symbol("alpha")
> >
> > In [3]: a
> > Ou
That fixed a problem I was having with isympy -p unicode not working
too.
Aaron Meurer
On Jun 2, 2009, at 2:32 PM, Mateusz Paprocki wrote:
> Hi,
>
> On Tue, Jun 02, 2009 at 03:42:49PM -0400, Joel C. Salomon wrote:
>>> C:\Users\chesky>python c:\Hacking\Python26\Scripts\isympy -p Unicode
>>>
>>
Mateusz Paprocki wrote:
> could you please try once again, this time with the attached
> patch applied, it should fix the problem.
Now this is odd…
I applied the patches (by hand; don’t know of a handy patch util for Windows)
and re-ran the test:
> C:\Users\chesky>python c:\Hacking\Python26\Scr
Sorry; Thunderbird glitched on me. Reposting, hopefully without
formatting oddnesses.
Mateusz Paprocki wrote:
> could you please try once again, this time with the attached
> patch applied, it should fix the problem.
Now this is odd…
I applied the patches (by hand; don’t know of a handy patch u
Sorry; Thunderbird glitched on me. Reposting, hopefully without
formatting oddnesses.
Mateusz Paprocki wrote:
> could you please try once again, this time with the attached
> patch applied, it should fix the problem.
Now this is odd…
I applied the patches (by hand; don’t know of a handy patch u
On Tue, Jun 2, 2009 at 3:09 PM, Joel C. Salomon wrote:
>>
>> In [8]:
>
> Now α is fine, but something there still is that doesn’t like a β… ;)
>
> Is this now a problem with …\Python26\lib\cp437.pyc, perhaps?
Ok, so this doesn't work for you?
$ python
Python 2.6.2 (release26-maint, Apr 19 2009,
Ondrej Certik wrote:
> On Tue, Jun 2, 2009 at 4:48 AM, Fabian Pedregosa wrote:
>> Luke wrote:
>>> I've published my branch of sympy where I started implementing the
>>> trig simplification algorithm by Hu et al. I also started working on
>>> the .eval() methods of sin, cos, and tan, and wrote a
It might also be the font you are using. Make sure you are using a
Unicode font.
Aaron Meurer
On Jun 2, 2009, at 3:33 PM, Ondrej Certik wrote:
>
> On Tue, Jun 2, 2009 at 3:09 PM, Joel C. Salomon > wrote:
>>>
>>> In [8]:
>>
>> Now α is fine, but something there still is that doesn’t like a
On Tue, Jun 2, 2009 at 5:33 PM, Ondrej Certik wrote:
> Ok, so this doesn't work for you?
>
> $ python
print(u'\u03b1')
> α
print(u'\u03b2')
> β
>
> then I think your terminal doesn't support unicode afterall. Which
> terminal are you using? cmd.exe, or something else?
Correct; α works
no any comment?
--~--~-~--~~~---~--~~
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.c
On Tue, Jun 2, 2009 at 9:32 PM, Oyster wrote:
>
> no any comment?
Yes, I don't want to install illegal windows to debug it, but I am now
downloading the 2.36GB windows7, that microsoft offers for free.
If you have some better idea how to provide me a testing environment,
let me know.
Many than
28 matches
Mail list logo