题目描述 给定在笛卡尔坐标系的单位圆上的$N$个点(圆心为$(0, 0)$)。第$i$个点的坐标为$(cos(\frac{2 \pi T_i}{L}), sin(\frac{2 \pi T_i}{L}))$。 三个不同的点将在这$N$个点中等概率的随机,请求出这三个点构成的三角形的内切圆圆心的$x$ ...
分类:
其他好文 时间:
2020-03-18 09:40:05
阅读次数:
60
var R = 320; function setPosition(){ pivot2.position.x = - Math.sin(Math.PI/5)*R; pivot2.position.z = Math.cos(Math.PI/5)*R; pivot2.rotation.z = -Math ...
分类:
其他好文 时间:
2020-03-14 18:33:37
阅读次数:
67
一. 二维数据曲线图1.1 绘制二维曲线的基本函数1.plot()函数 plot函数用于绘制二维平面上的线性坐标曲线图,要提供一组x坐标和对应的y坐标,可以绘制分别以x和y为横、纵坐标的二维曲线。 例: t=0:0.1:2*pi; x=2 * t; y=t.*sin(t).*sin(t); plot ...
分类:
其他好文 时间:
2020-03-11 10:48:56
阅读次数:
85
$$\cos \left( A-B\right) =\frac {2\sin A\sin B} {\sin C}\Rightarrow \sin C \cdot \cos \left( A-B\right) =\cos \left( A-B\right) -\cos \left( A+B\right ...
分类:
其他好文 时间:
2020-03-11 01:10:22
阅读次数:
100
SQL脚本 思路:计算经纬度之间球面距离,返回单位:米 6378137*2*ASIN(SQRT(POWER(SIN((destination_lat-endpoint_lat)*ACOS(-1)/360),2) +COS(destination_lat*ACOS(-1)/180)*COS(endpo ...
分类:
其他好文 时间:
2020-03-06 20:23:59
阅读次数:
75
今天有个小朋友向我提出了一个「了不起」的问题。 一个有趣的现象 打开一个没有 Bug 的计算器,任意输入一个数值 $x$,然后找一个定义域为 $R$ 的函数 $f(x)$ ,比如 $sin(x), cos(x)$ 等等,连续点击这个函数若干次,你会发现一个有趣的现象:无论初始的 $x$ 为多少,最后 ...
分类:
编程语言 时间:
2020-03-05 22:17:27
阅读次数:
135
一、折线图 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2 * np.pi, 100) y1, y2 = np.sin(x), np.cos(x) plt.plot(x, y1, c='r', ls='- ...
分类:
编程语言 时间:
2020-03-04 22:45:55
阅读次数:
81
1.sin() A = 1 2 3 4 5 6 7 8 9 >> sin(A) ans = 0.8415 0.9093 0.1411 -0.7568 -0.9589 -0.2794 0.6570 0.9894 0.4121 2.logm(n) >> log2(1) ans = 0 3.平方根sqrt ...
分类:
其他好文 时间:
2020-03-04 15:08:12
阅读次数:
94
1.纯跟踪算法 compute_wheel2 = atan(2 * Vehicle_length * sin(pid_yaw) / (k * 2 / 3.6 + Lf)) * 57.3 # Lf 为预瞄距离 https://blog.csdn.net/adamshan/article/details ...
分类:
编程语言 时间:
2020-03-03 13:15:37
阅读次数:
72
导入模块的方式: import 模块名1,模块名2...... import 模块名 as 别名 from 模块内置方法(类,函数) from 模块名 (*号表示全部导入) 导入模块底层原理: import 实质上是调用了 __import()__方法 如:import math math.sin( ...
分类:
其他好文 时间:
2020-02-28 14:05:15
阅读次数:
59