Skip to content

Updated functions.cpp and Added Tests#1180

Merged
isuruf merged 1 commit intosymengine:masterfrom
ShikharJ:MiscImprovements
Jan 24, 2017
Merged

Updated functions.cpp and Added Tests#1180
isuruf merged 1 commit intosymengine:masterfrom
ShikharJ:MiscImprovements

Conversation

@ShikharJ
Copy link
Copy Markdown
Member

No description provided.

@ShikharJ
Copy link
Copy Markdown
Member Author

ping @isuruf.

if (eq(*arg, *zero)) {
// Answer is infinity. Yet to be implemented in SymEngine
throw NotImplementedError("Not Implemented");
return infty(0);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use return ComplexInf;

REQUIRE(eq(*r1, *r2));

r1 = gamma(minus_one);
REQUIRE(r1->__str__() == "zoo");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use eq(*r1, *ComplexInf) instead of comparing using strings.

@ShikharJ ShikharJ closed this Jan 24, 2017
@ShikharJ ShikharJ reopened this Jan 24, 2017
@ShikharJ ShikharJ closed this Jan 24, 2017
@ShikharJ ShikharJ reopened this Jan 24, 2017
@isuruf
Copy link
Copy Markdown
Member

isuruf commented Jan 24, 2017

@ShikharJ, if it's just one job that needs to be restarted, let me know. I can just restart that job instead of the whole build which has 20 jobs.

@isuruf isuruf merged commit d44e20c into symengine:master Jan 24, 2017
@ShikharJ ShikharJ deleted the MiscImprovements branch January 24, 2017 19:42
ranjithkumar007 pushed a commit to ranjithkumar007/symengine that referenced this pull request Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants