Snap a photo of a mathematical question and get a detailed solution from WolframAlpha. The mathematical ocr is powered by Mathpix api.
ENV VARS
mv .env-sample .env
And provide the values for MATHPIX_API_KEY
, MATHPIX_APP_ID
& WOLFREEALPHA_API_ENDPOINT
Start project
npm install
expo start
Have your endpoint take the following body POST <WOLFREEALPHA_API_ENDPOINT>
{
"input": <mathematical string>
}
And return the response making the call to wolframalpha api
GET https://api.wolframalpha.com/v2/query
with query params:
appid = <app-id>
input = <input>
podstate = Step-by-step+solution
podstate = Step-by-step
podstate = Show+all+steps
scantimeout = 999
podtimeout = 999
formattimeout = 999
parsetimeout = 999
totaltimeout = 999
output = json
Note: replace with your wolframalpha app id and is the mathematical string sent in the body of the request