Hello,
I'm writing a very initial version of a code generator. I would like to add
proper tests for the generated c code. The test will involve a compilation with
gcc and linking against a small c program that tests the output of the function
for several inputs. If some outputs are wrong, the n
Hi Toon!
On Fri, Jun 5, 2009 at 8:09 AM, Toon
Verstraelen wrote:
> Hello,
>
> I'm writing a very initial version of a code generator. I would like to add
> proper tests for the generated c code. The test will involve a compilation
> with
> gcc and linking against a small c program that tests the
On Fri, Jun 5, 2009 at 9:59 AM, Ondrej Certik wrote:
> Hi Toon!
>
> On Fri, Jun 5, 2009 at 8:09 AM, Toon
> Verstraelen wrote:
>> Hello,
>>
>> I'm writing a very initial version of a code generator. I would like to add
>> proper tests for the generated c code. The test will involve a compilation
>
Ondrej Certik wrote:
> On Fri, Jun 5, 2009 at 9:59 AM, Ondrej Certik wrote:
>> Hi Toon!
>>
>> On Fri, Jun 5, 2009 at 8:09 AM, Toon
>> Verstraelen wrote:
>>> Hello,
>>>
>>> I'm writing a very initial version of a code generator. I would like to add
>>> proper tests for the generated c code. The tes
On Jun 5, 2009, at 9:59 AM, Ondrej Certik wrote:
>
> Besides that, it's a good idea to also have tests, that actually
> compile things using gcc, as you suggested. For that, I suggest to
> create a new test sympy/test_external, for example
> "test_code_generation.py", that will work something lik
On Fri, Jun 5, 2009 at 10:31 AM, Aaron S. Meurer wrote:
>
>
> On Jun 5, 2009, at 9:59 AM, Ondrej Certik wrote:
>>
>> Besides that, it's a good idea to also have tests, that actually
>> compile things using gcc, as you suggested. For that, I suggest to
>> create a new test sympy/test_external, for
Just noticed an odd behavior: does anyone know why a power would be
changed to real by simplification if that power is a term in a
division expression?
###
>>> a,y=var('a y')
>>> simplify(a*y**5)
a*y**5
>>> simplify(y**5/a)
y**5.0/a
###
/c
--~--~-~--~~~---~--~~
Yo
On Jun 5, 9:32 am, "Aaron S. Meurer" wrote:
> I cannot reproduce this. match returns None for me in that case. If
> it returns b:3, then it is wrong.
I'm not sure what's different. I just synced my python sympy with the
git master sympy and obtained the same result:
PythonWin 2.6.1 (r261:67
Once again, I cannot reproduce this. What version of python are you
running? Try doing "from __future__ import division". It is
reminiscent of things like 1/3 returning the float 0..
Also try simplify(sympify(y**5/a)). Does it only do this if you call
simplify? If so, cou