Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need to calculate Integral of some function in my C# Windows Form application, Function could be anything for example X^2 or radical of 2. i have decided to give the function to Integral calculator website (http://www.integral-calculator.com[^] or http://integrals.wolfram.com/index.jsp [^] or http://www.wolframalpha.com/input/?i=integrate+x%5E2[^]) and read the answer from them.
so what i need is to write the function in one of site above press the button and read the answer from them. How can i do that?
Posted
Updated 28-Jun-15 11:05am
v2

1 solution

Good question, but the thing is that there is no API for the website. You usually use an HTTP API to send requests and get responses for the request. Apart from this, you are more likely to get your request's status CANCELLED because of CORS; cross-origion resource sharing.

There is however one thing that you can do, at the end of the website author has shared his email address. You can contact him to ask for a way, he might create an API for you (and other developers with same opinion and need). Then you can send requests to the website with some expression and get the results.
 
Share this answer
 
Comments
Akira98 28-Jun-15 18:38pm    
Do you know any other way to calculate integral easily with C#?
Afzaal Ahmad Zeeshan 28-Jun-15 18:44pm    
Nope, there is no easy way to calculate integrals in C#. Integrals is pure calculus, C# is just the language you use to talk to .NET framework or other similar platforms. You would have to make the framework understand how to do, how to do. Would that be easy enough? (No, in my opinion).
Akira98 29-Jun-15 7:15am    
I sing out in http://products.wolframalpha.com/developers/?_ga=1.132712334.144108238.1435525176 for api, wolfram gave me an AppId, but still i don't know how to use it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900