八种常用的数学函数: ① abs(x):求绝对值 ② ceil(x),floor(x):向上/下取最接近的整数 ③ cos(x),sin(x),tan(x):三角函数 ④ min(),max():最小值与最大值 ⑤ pow(base,exp):求乘方 ⑥ rand(),rand(min,max):产 ...
分类:
Web程序 时间:
2019-02-12 12:55:34
阅读次数:
208
1 #线性回归:用线性模型y=Wx+b拟合sin 2 import numpy as np 3 import matplotlib.pyplot as plt 4 import tensorflow as tf 5 6 #数据,标签 7 x_data = np.li... ...
分类:
编程语言 时间:
2019-02-10 23:39:45
阅读次数:
352
"Sine之舞" cpp include include include using namespace std; int main(){ int n; cin n; vector A(n+1,""); for(int i=1; i0; j ){ str="sin("+str+")"; if(j 1 ...
分类:
其他好文 时间:
2019-02-03 20:57:06
阅读次数:
183
映射 是一种对应关系。 函数 是一种映射,将变量间的关系形式化为数学描述。 令$y = f(x)$,即$y$是$x$的函数,可以是$y = 2x + 1$,也可以是$y = sin(x)$。$x$的变化将引起$y$的变化,$x$的变化量$\triangle x$导致$y$变化$\triangle y ...
分类:
其他好文 时间:
2019-01-26 19:34:30
阅读次数:
211
效果图: 1.绕Z轴旋转的旋转矩阵 2.UV旋转的步骤 (1) 由于旋转矩阵是绕原点旋转的,要把要旋转的UV坐标平移到原点 (2)旋转UV坐标 1 i.uv.x = cos(_Speed * _Time.y) * tempUV.x - sin(_Speed * _Time.y)*tempUV.y; ...
分类:
其他好文 时间:
2019-01-26 17:11:00
阅读次数:
219
求$\sqrt{\dfrac{5}{4}-\sin x}+2\sqrt{\dfrac{9}{4}+\cos x-\sin x}$的最小值. ...
分类:
其他好文 时间:
2019-01-26 13:19:53
阅读次数:
181
根据函数画出函数的轨迹 import matht = np.linspace(0, math.pi, 1000)x = np.sin(t)y = np.cos(t) + np.power(x, 2.0/5)plt.plot(x, y, color='red', linewidth=1, label= ...
分类:
其他好文 时间:
2019-01-19 18:52:15
阅读次数:
158
参考资料: https://github.com/lijin-THU/notes-python(相应实体书为:《自学Python——编程基础、科学计算及数据分析》) Numpy通用函数汇总 import numpy as np 1. 三角函数 sin(x) cos(x) tan(x) sinh(x) ...
分类:
编程语言 时间:
2019-01-18 22:24:33
阅读次数:
197
函数$f(x)=\dfrac{3+5\sin x}{\sqrt{5+4\cos x+3\sin x}}$的值域是____ ...
分类:
其他好文 时间:
2019-01-16 23:21:12
阅读次数:
268
矩阵的级数: 定义: \[{e^{tA}} = I + \frac{{tA}}{{1!}} + \frac{{{t^2}{A^2}}}{{2!}} + ... + \frac{{{t^k}{A^k}}}{{k!}} + ...\] \[\sin (tA) = tA - \frac{{{t^3}{A^ ...
分类:
其他好文 时间:
2019-01-12 18:31:02
阅读次数:
253