fn: 'sin(x)',
fn: '2(x)+4',
中间
fn:'ln(x)/ln(3)'
中间
fn:'sqrt(x)'
对于分数次幂,例如
fn:'nthRoot(x, 3)^2'
同样,对于
fn: '1/tan(x)',
fn:'E^x'
{
fn: 'x * x + y * y - 1',
fnType: 'implicit'
}
data:[
{
fn: 'x*x',
graphType: 'polyline',
color:'red'
} ,
{
fn: 'x*x*x',
graphType: 'polyline',
color:'blue'
} ,
]
data: [{
x: 'cos(t)',
y: 'sin(t)',
fnType: 'parametric',
graphType: 'polyline'
}]
functionPlot({
target: '#root',
yAxis: {domain: [-1.897959183, 1.897959183]},
xAxis: {domain: [-3, 3]},
data: [{
r: 'r0 * cos(theta - gamma) + sqrt(a^2 - r0^2 * (sin(theta - gamma))^2)',
scope: {
a: 1,
r0: 0,
gamma: 0
},
fnType: 'polar',
graphType: 'polyline'
}]
})