Re: Issue 4128 in sympy: fix comparisons oo/zoo with complex numbers, e.g. ooI

2014-01-11 Thread sympy
Updates: Status: Fixed Labels: -NeedsReview Comment #2 on issue 4128 by skirpic...@gmail.com: fix comparisons oo/zoo with complex numbers, e.g. ooI http://code.google.com/p/sympy/issues/detail?id=4128 (No comment was entered for this change.) -- You received this message

Re: [sympy] Re: Convert sympy to javascript

2014-01-11 Thread F. B.
On Saturday, January 11, 2014 2:13:38 AM UTC+1, Aaron Meurer wrote: In Chrome, I get 0.55566757; in Firefox I get 2.4737711. I also tried Safai 7.0.1 (I get 4.6381144) and Opera because you mentioned it (version 12.16, I get 4.4440572). So maybe Chrome beta already has

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread mario
Currently one must do the following ``` Ric Riem(L_0, -d1, -L_0, -d3) R = (Ric(d0, d1)*g(-d0, -d1)).contract_metric(g) R Riem(L_0, -L_1, -L_0, L_1) ``` One cannot write ``` Ric(d1, -d1) Riem(L_0, d1, -L_0, -d1) ``` I think this is a bug; the Einstein summation convention is assumed, so if

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread F. B.
I think I will add a warning in TensMul's docstring about this possible issue. By the way, Krastanov already pointed out an example on how to deal with General Relativity with the diffgeom module. That is an interesting approach, I wish one day we could have tensor and diffgeom to easily

Re: [sympy] Re: Convert sympy to javascript

2014-01-11 Thread F. B.
On Saturday, January 11, 2014 2:49:16 AM UTC+1, David Li wrote: @F.B. have you managed to compile Python using Emscripten? I tried but could not get the interpreter working, it just hung/crashed if I tried to bundle the standard library and complained about site.py otherwise. No, I

[sympy] Re: Android App For Sympy

2014-01-11 Thread Shipra Banga
Thanks so much for your help. I looked into kivy and went through its tutorials and API docs. I think it is a good way to build a python app for sympy . Also we can then port it onto android as well as iOS platforms. I have started work on it. -- You received this message because you are

Re: [sympy] Finding critical point of Piecewise functions

2014-01-11 Thread Harsh Gupta
Thanks for this. So, we are trying to convert something like `[(x, x 0), (-x , x =0)]` to `[(x, (0, oo) ), (-x, (-oo, 0] ) ]`. I wrote a small script to try it out for univariate functions ``` def to_expr_set(p, input_set=None): if input_set is None: U = Interval(-oo, oo) # U:

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread F. B.
On Saturday, January 11, 2014 10:04:03 AM UTC+1, mario wrote: I think this is a bug; the Einstein summation convention is assumed, so if the substitution indices are (d1, -d1) it should give the contracted tensor. We already discussed this problem, regarding *substitute_indices( )*:

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread Comer
On Saturday, January 11, 2014 4:04:03 AM UTC-5, mario wrote: Currently one must do the following ``` Ric Riem(L_0, -d1, -L_0, -d3) R = (Ric(d0, d1)*g(-d0, -d1)).contract_metric(g) R Riem(L_0, -L_1, -L_0, L_1) ``` One cannot write ``` Ric(d1, -d1) Riem(L_0, d1, -L_0, -d1) ```

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread F. B.
On Saturday, January 11, 2014 6:56:06 PM UTC+1, Comer wrote: In [*3*]: run RiemRicREinstein.py File /Users/comerduncan/sympytensor/RiemRicREinstein.py, line 52 G(a,b) = Ric(a,b) -gR SyntaxError: can't assign to function call So, what's the problem? I should be able to

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread Comer
On Saturday, January 11, 2014 1:09:05 PM UTC-5, F. B. wrote: On Saturday, January 11, 2014 6:56:06 PM UTC+1, Comer wrote: In [*3*]: run RiemRicREinstein.py File /Users/comerduncan/sympytensor/RiemRicREinstein.py, line 52 G(a,b) = Ric(a,b) -gR SyntaxError: can't assign to

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread F. B.
On Saturday, January 11, 2014 7:26:51 PM UTC+1, Comer wrote: I do have another question or two... I see the .data method. What is really needed is the ability to create data arrays constructed from symbols, indeed functions of various local coordinates. So far I have only seen

Re: [sympy] Re: SymPy error running Python3

2014-01-11 Thread Aaron Meurer
On Sat, Jan 11, 2014 at 1:49 AM, Janwillem van Dijk jwe.van.d...@gmail.com wrote: Ondřej, I did send you my complete 900 lines scripts to show the problem and did not think of making a very simple demo; here it is: But it doesn't help the rest of us if you only send your script to Ondrej.

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread Comer
On Saturday, January 11, 2014 2:04:23 PM UTC-5, F. B. wrote: On Saturday, January 11, 2014 7:26:51 PM UTC+1, Comer wrote: I do have another question or two... I see the .data method. What is really needed is the ability to create data arrays constructed from symbols, indeed functions

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread Comer
On Saturday, January 11, 2014 3:30:40 PM UTC-5, Comer wrote: On Saturday, January 11, 2014 2:04:23 PM UTC-5, F. B. wrote: On Saturday, January 11, 2014 7:26:51 PM UTC+1, Comer wrote: I do have another question or two... I see the .data method. What is really needed is the ability

[sympy] Re: Questions about usage of sympy tensor

2014-01-11 Thread F. B.
On Saturday, January 11, 2014 9:35:52 PM UTC+1, Comer wrote: Now I am trying to create the Weyl tensor. Here is what I do and the response: W = tensorhead('W',[Lorentz]*4,[[2, 2]]) This definition is useless, it gets overridden later. terma =