These are chat archives for symengine/symengine

7th
Apr 2017
Christopher Rackauckas
@ChrisRackauckas
Apr 07 2017 03:52
hey @isuruf , what's happening with symengine/symengine#1225 ?
Isuru Fernando
@isuruf
Apr 07 2017 03:54
let's see what @certik says. E**2 is now printed as exp(2). Only E is special cased. I'd like to remove that as well.
Btw, I can implement a Julia printer as well. ** can be printed as ^, etc.
Isuru Fernando
@isuruf
Apr 07 2017 04:01
any other differences to python?
Christopher Rackauckas
@ChrisRackauckas
Apr 07 2017 04:07
e instead of E
Shikhar Jaiswal
@ShikharJ
Apr 07 2017 14:16

@isuruf In this statement

mpfr_set_d(f, zeta(-34), MPFR_RNDN);

the mpfr_set_d function expects a double value in place of zeta(-34). What function can I use to numerically evaluate zeta(-34)?

Isuru Fernando
@isuruf
Apr 07 2017 14:17
@ShikharJ, eval_double
note that eval_double will convert it to 53 bits of precision, but f might have higher precision
Shikhar Jaiswal
@ShikharJ
Apr 07 2017 14:19
Thanks!
Shikhar Jaiswal
@ShikharJ
Apr 07 2017 18:08
So, I checked the code for eval_double. It seems that zeta is not implemented in the visitor class, and hence currently returns Not Implemented for eval_double(*zeta(integer(-34))). Any other suggestions?
Isuru Fernando
@isuruf
Apr 07 2017 18:09
hard code the value in the test