Skip to content

Instantly share code, notes, and snippets.

@flying19880517
flying19880517 / plot.js
Last active September 19, 2016 10:25
来源: http://yujianrong.bitbucket.org/JsTool/Plot/plot.html 说明:虽然使用了动态细分的办法,但效果还是不够理想,不知道应该用什么办法才能做得比较好。 尝试第一个的话要写成 sin(pow(E,x+y)) = pow(E,sin(x)+cos(y)) 可以用以下Javascript数学库的函数/常数: E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2 abs acos asin atan atan2 ceil cos exp floor log max min pow round sin sqrt tan 注意 a^b 要写成 pow(a,b) 这种形式,要不然会被当作异或操作
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
var Config={
Width :400,
Height:400,
Range:{X:{Min:-10, Max:10}, Y:{Min:-10, Max:10}},
MaxSplit:10
};