// CONVEX HULL I // modified by rr 不能去掉点集中重合的点 #include #define eps 1e-8 #define zero(x) (((x)>0?(x):-(x))0?1:-1):(ret>0?1:-1…
DTS包 源代码
汇集 DTS包 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
// CONVEX HULL I // modified by rr 不能去掉点集中重合的点 #include #define eps 1e-8 #define zero(x) (((x)>0?(x):-(x))0?1:-1):(ret>0?1:-1…
#include const maxn = 100 ; const maxm = 1000 ;//最大的重量 int main() { int i ,j , m ,n,t; int w[maxn],v[maxn]; int s[ma…
#include #include #include #define MAXN 1200 using namespace std; struct TPos { int x , y; bool …
%测试w=0是不是信号的包络 t=linspace(-pi*4,pi*4,5000); W=10; y1=(2/pi)*((sin((B*t)/2)./t).^2);%包络 y2=(2/pi)*((sin((B*t)/2)./t).^2).*cos(W…