Posted in

Great Mathematical API by Wolfram

I was in the process of computing some definite integrals involving special mathematical constants, when I discovered WolframAlpha. It solves tons of mathematical problems, for free, online, offering exact solutions whenever possible. Not just integrals, but matrix computations and much more.

In my case, I was trying to see, if by computing an integral in two different ways, one using the original function on the original domain, and the other one using the inverse function on the image domain, I would be able to find a mathematical equality involving one special mathematical constant for the first integral (say e or Pi) and one involving some other special mathematical constants (say log 2) for the second integral. The idea being that, if I manage to find such a relationship, then it means that the two mathematical constants (say e and log 2) are a simple function of each other, and thus we only need one. 

Needless to say, I was not able to find such relationships. I did find some interesting stuff though. First, the WolframAlpha API, and then, I rediscovered an obscure but fundamental theorem, not mentioned in math textbooks — a theorem linking the integral of a function to the integral of its inverse. 

Below is the results of using the API for the inverse of f(x) = exp(- x^2) between 0 and infinity: a famous integral involving the square root of Pi. The inverse is g(x) = SQRT(- log x) between 0 and 1: both integrals, for symmetry reasons (based on the theorem in question), have the same value. WolframAlpha just confirmed this fact, rather than – as was my hope – getting a value based on special math constants other than Pi.

Note that Symbolab offers a similar API. In the process, I also discovered HostMath, to write math formulas online (a math editor) then take screenshots and include the math formulas as images in an HTML document. I used it for the first time in this article.

WolframAlpha

My full profile is accessible by searching for "My Data Science Journey" on Google. Below is a short bio.

Dr. Vincent Granville is a visionary data scientist with 15 years of big data, predictive modeling, digital and business analytics experience. Vincent is widely recognized as the leading expert in scoring technology, fraud detection and web traffic optimization and growth. Over the last ten years, he has worked in real-time credit card fraud detection with Visa, advertising mix optimization with CNET, change point detection with Microsoft, online user experience with Wells Fargo, search intelligence with InfoSpace, automated bidding with eBay, click fraud detection with major search engines, ad networks and large advertising clients.

Most recently, Vincent launched Data Science Central, the leading social network for big data, business analytics and data science practitioners. Vincent is a former post-doctorate of Cambridge University and the National Institute of Statistical Sciences. He was among the finalists at the Wharton School Business Plan Competition and at the Belgian Mathematical Olympiads. Vincent has published 40 papers in statistical journals and is an invited speaker at international conferences. He also developed a new data mining technology known as hidden decision trees, owns multiple patents, published the first data science book, and raised $6MM in start-up funding. Vincent is a top 20 big data influencers according to Forbes, and was featured on CNN.

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.