These are chat archives for symengine/symengine

28th
Oct 2016
Isuru Fernando
@isuruf
Oct 28 2016 02:18
second one
Shikhar Jaiswal
@ShikharJ
Oct 28 2016 04:15
@isuruf while running ./bin/test_format_local.sh I am constantly getting this error:
./bin/test_format_local.sh: line 19: clang-format: command not found
what could be the possible reason?
Isuru Fernando
@isuruf
Oct 28 2016 04:16
you need to install clang-format-3.7
Shikhar Jaiswal
@ShikharJ
Oct 28 2016 04:17
Thanks once again!
Shikhar Jaiswal
@ShikharJ
Oct 28 2016 04:51
@isuruf Regarding #228, in many of the cases, a warning is issued as "conversion to double(or int) from long double(or long int) may alter its value". Should I just scale up (change the return type of such functions from double to long double) or should I scale down?
Isuru Fernando
@isuruf
Oct 28 2016 04:52
can you give an example?
Shikhar Jaiswal
@ShikharJ
Oct 28 2016 04:53
/home/shikhar/symengine/symengine/mp_class.h: In function ‘double SymEngine::mp_get_d(const integer_class&)’:
/home/shikhar/symengine/symengine/mp_class.h:94:20: warning: conversion to ‘double’ from ‘long double’ may alter its value [-Wfloat-conversion]
return i.get_d();
would it be safe to change from double to long double?
Isuru Fernando
@isuruf
Oct 28 2016 04:56
For that function, cast to double.
Don't use long doubleanywhere. double is enough
Shikhar Jaiswal
@ShikharJ
Oct 28 2016 04:59
Same to be done for unsigned int and long int?
/home/shikhar/symengine/symengine/series.h:143:28: warning: conversion to ‘int’ from ‘long int’ may alter its value [-Wconversion]
p = Series::pow(p_, (static_cast<const Integer &>(other).as_int())
/home/shikhar/symengine/symengine/series.h:137:32: warning: conversion to ‘unsigned int’ from ‘long int’ may alter its value [-Wconversion]
/home/shikhar/symengine/symengine/series.h:140:42: warning: conversion to ‘unsigned int’ from ‘long int’ may alter its value [-Wconversion]
p = Series::seriesinvert(p, Series::var(var), deg);
euleram
@vijeth-aradhya
Oct 28 2016 10:05
Hi I'm new to open source, and thought of contributing to sympy and symengine
Is the crypto module yet to be developed in symengine?
Isuru Fernando
@isuruf
Oct 28 2016 10:09
@vijeth-aradhya, welcome. No, there is no crypto module, but a crypto module is not really symbolic, right?
euleram
@vijeth-aradhya
Oct 28 2016 10:21
True, but I thought a basic feature seemed important like rsa encryption and decryption and many more