rurihabachi
Japanese Home



Home

Math Tools



>Web API<

How to use

Calculation
Function(x)
F(x)-x graph
Differentiation



Feedback









Differentiation - Web API

This api returns a (partial) derivative of a provided function.

  » Check the function of this API: go to Differentiate f(x) page (math tool).

To use this API, access to the URLs listed below.
Each Web API returns XML / JSON (JSONP) / CSV data.

XML http://www.rurihabachi.com/web/webapi/differentiation/xml
JSON/JSONP http://www.rurihabachi.com/web/webapi/differentiation/json
CSV http://www.rurihabachi.com/web/webapi/differentiation/csv

  » See also How to use Web API page.


Parameters:  (*required)
function * string a function (e.g. x^2+x+2)
- valid characters (x, y, z, a, b, and c are constants):
1234567890+-*/()^,pi,e,sqrt,log,sin,cos,tan,a,b,c,x,y,z
variable string a variable (e.g. x)
- differentiate the function with respect to this variable.
- default: x
callback string a callback function name (e.g. setResult)
- valid only JSONP

Return values:
function string a recognized function (might have a different form from the submited function).
e.g. x^2+x+2
variable string the function above has been (partially) differentiated with respect to this variable. (e.g. x)
status integer 0:OK, 1-999:error
message string an error message etc.
count integer the number of the result set (0 or 1)
resultset - a result set
expression string a differentiated expression (empty if status is not 0)
e.g. 2x+1

      *      *      *

Return data samples:

  XML
<?xml version="1.0" encoding="UTF-8"?>

<result function="differentiation">
  <function>x^2+x+2</function>
  <variable>x</variable>
  <status>0</status>
  <message>OK</message>
  <count>1</count>
  <resultset>
    <expression>2x+1</expression>
  </resultset>
</result>

  JSON(JSONP)
{"function":"x^2+x+2","variable":"x","status":0,"message":"OK","count":1,"resultset":[{"expression":"2x+1"}]}

  CSV
"x^2+x+2","x",0,"OK",1
"2x+1"


Copyright (C) 2011-2020 rurihabachi. All rights reserved.