Skip to content

Conversation

@Alii-Khaled
Copy link
Contributor

@Alii-Khaled Alii-Khaled commented Apr 19, 2019

I have Added the following:

  • Addition, Subtraction, Multiplication, division & Power Operator Overloading functions for Constant Class.

  • Many Test cases for all these Functions.

  • isZero() function in Function Class that returns whether that Function ( constant or anything else ) is Zero or not, in order to make calculations according to its output. ( for example multiplication by zero )

  • I have Modified Constant Exponential Class to work well with Constant exponents as ( 5^(x+3) ).

-For Code Coverage : I found out that during Implementation of Operator overloading function Code coverage could decrease a little bit - Although here I increased Code coverage by 0.7% - , but once we finish All Classes we will rapidly increase code coverage as we will remove the existing Add/Sub & Mul/Div .

I hope @8hantanu , @sidkothiyal Review the Code to improve it and to let us work on other Classes in a better way.

@Alii-Khaled
Copy link
Contributor Author

Alii-Khaled commented Apr 19, 2019

Hey @8hantanu, Codacy is not allowed to analyse my PR because it is on Simplify Branch. (not dev branch)*
Please check this out for further PRs.

@8hantanu
Copy link
Member

@Alii-Khaled Not a problem. As long as the code is complying with Travis CI tests, it's good, Anyway, I will add the simplify branch to codacy soon.

Making Constant initialization much easier & changed Tests according to that change.
@Alii-Khaled
Copy link
Contributor Author

@8hantanu Done. 👍

Copy link
Member

@8hantanu 8hantanu left a comment

Choose a reason for hiding this comment

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

Can you add the test cases for the following in test_functions.py?

  • Constant + Expression
  • Constant - Expression
  • Expression - Constant
  • Constant * Expression
  • Constant / Expression
  • Expression / Constant
  • Constant ** Constant

Alii-Khaled and others added 3 commits April 29, 2019 20:27
Co-Authored-By: Alii-Khaled <47671499+Alii-Khaled@users.noreply.github.com>
@8hantanu 8hantanu merged commit 317e115 into aerospaceresearch:simplify May 5, 2019
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