These are chat archives for symengine/symengine

2nd
Jan 2016
Srajan Garg
@srajangarg
Jan 02 2016 10:20
how to get the RCP form of x if it's a Basic?
make_rcp<const Basic>(x) is throwing a compile error, that I don't fully understand
Srajan Garg
@srajangarg
Jan 02 2016 10:53
Nvm, x.rcp_from_this()
Sumith Kulal
@Sumith1896
Jan 02 2016 11:54
@isuruf Could you have a look at this and get it merged symengine/symengine#733
I think he's having to merge with master with every other PR merged
Akash Trehan
@CodeMaxx
Jan 02 2016 12:52
does a RCP<const Integer> &a work the same way as int &a ?
Sumith Kulal
@Sumith1896
Jan 02 2016 12:52
By work you mean?
Akash Trehan
@CodeMaxx
Jan 02 2016 12:52
for e.g. can I write sqrt(a) in both cases?
Sumith Kulal
@Sumith1896
Jan 02 2016 12:54
RCP is a pointer, you have to remember that
Akash Trehan
@CodeMaxx
Jan 02 2016 12:55
oh... so will sqrt(*a) work ?
Sumith Kulal
@Sumith1896
Jan 02 2016 12:56
Should, if it is defined in the namespace
Akash Trehan
@CodeMaxx
Jan 02 2016 16:43
What does the REQUIRE() function do?
Raises an exception when false is passes ?
Isuru Fernando
@isuruf
Jan 02 2016 16:44
yes
Akash Trehan
@CodeMaxx
Jan 02 2016 17:25
@isuruf Tests added for quadratic_residue().
#736
Isuru Fernando
@isuruf
Jan 02 2016 17:26
Why is the input an int instead of Integer?
Akash Trehan
@CodeMaxx
Jan 02 2016 17:27
I don't know why but it was not recognising Integer
I'll try again
gives an error: Integer does not name a type
Akash Trehan
@CodeMaxx
Jan 02 2016 17:32
when I run make
Isuru Fernando
@isuruf
Jan 02 2016 17:32
have you included integer.h
Akash Trehan
@CodeMaxx
Jan 02 2016 17:37
yes its already there in ntheory.h
Isuru Fernando
@isuruf
Jan 02 2016 17:38
I can't say anything more without looking at the code
Akash Trehan
@CodeMaxx
Jan 02 2016 17:40
other functions are using it. Don't know why its crashing on mine.
I'll push the code anyways so you can take a look
Done.
Isuru Fernando
@isuruf
Jan 02 2016 17:43
Reason is that your code is outside SymEngine namespace
Akash Trehan
@CodeMaxx
Jan 02 2016 17:57
Ah...right
Thanx
I'm having trouble converting Integer to int
Isuru Fernando
@isuruf
Jan 02 2016 18:02
Take a look at integer.h
Akash Trehan
@CodeMaxx
Jan 02 2016 18:27
Done. Compiling fine.