Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We can use integrate class instead of using function #16166

Open
drishyakumar opened this issue Mar 5, 2019 · 3 comments
Open

We can use integrate class instead of using function #16166

drishyakumar opened this issue Mar 5, 2019 · 3 comments

Comments

@drishyakumar
Copy link

drishyakumar commented Mar 5, 2019

We can create integrate fuction class by using the object of that we will reduce the frequent usage of integrate fuction instead

@oscarbenjamin
Copy link
Contributor

That's a better title but you still haven't put anything in the description. You don't need to close the issue. You can just edit the description.

You will need to give more explanation to get a meaningful response.

@sidhantnagpal
Copy link
Member

Are you proposing a class for integrals, because there is one already.
Integral is used to represent unevaluated integrals with the ability to call doit() on it. There is also the method integrate, as you mentioned, if you want to perform the symbolic integration.

In [13]: Integral(cos(x))                                                       
Out[13]: 
⌠          
⎮ cos(x) dx
⌡          

In [14]: _.doit() == integrate(cos(x)) == sin(x)                                
Out[14]: True

@drishyakumar
Copy link
Author

drishyakumar commented Mar 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants