TCP网络编程流程套接字 struct
sockaddr{ //通用套接字数据结构 sa_family_t
sa_family; //协议族 char
sa_data[14]; //协议族数据 } 实际使用sockaddr_in,在bind时或connect时再强行转换 struct
sockaddr_in{ //以太网套接字数据结构 u8
sin_len; u8
sin_familly; u16
sin_por..
分类:
其他好文 时间:
2015-02-26 11:55:04
阅读次数:
168
证明积分:$$\int_{-\pi/2}^{\pi/2} (\sin(x))^n dx = \frac{n-1}{n}\int_{-\pi/2}^{\pi/2} (\sin(x))^{n-2} dx$$证明:\begin{align}\int_{-\pi/2}^{\pi/2} \sin^nx \, ...
分类:
其他好文 时间:
2015-02-24 12:31:42
阅读次数:
115
//?sinx.cpp?:?定义控制台应用程序的入口点。
//
#include?"stdafx.h"
#include?<iostream>
using?std::cout;
using?std::cin;
using?std::endl;
int?factorial(int?num){
????int?a=1;
????...
分类:
编程语言 时间:
2015-02-21 06:32:54
阅读次数:
470
Guilt should only be a call to action.When we see that we "missed the mark"(the meaning of sin in the original biblical Greek) we only need to correct...
分类:
其他好文 时间:
2015-02-20 20:52:13
阅读次数:
165
unity3d 水体water effect的制作, 本次主要对水体的波动进行研究,sin,cos,Gerstner波等。...
分类:
编程语言 时间:
2015-02-18 17:44:03
阅读次数:
409
unity3d 水体water effect的制作, 本次主要对水体的波动进行研究,sin,cos,Gerstner波等。
分类:
编程语言 时间:
2015-02-18 17:38:35
阅读次数:
383
一, 三角函数 正弦sin(a) = b / c 余弦cos(a) = a / c tan(a) = b / a csc(a) = 1 / sin(a) = c / b sec(a) = 1 / cos(a) = c / a cot(a) = 1 ...
分类:
其他好文 时间:
2015-02-13 06:59:06
阅读次数:
194
Vector3 tmpvc;1. tmpvc = Quaternion.Euler (new Vector3 (0, 30, 0)) * new Vector3 (0, 0, 1);2. tmpvc = new Vector3 (sin (30.0f), 0, cos (30.0f)); ...
分类:
编程语言 时间:
2015-02-09 17:37:40
阅读次数:
175
这是我人生中的第一个计算几何题,好好收藏一下。1、当一个点关于远点对称之后,除了两点之间的连线外,其他的任何直线都会讲两点分成两个部分2、极角排序3、线的旋转4、叉积求 sin#include #include #include #include using namespace std;class ...
分类:
其他好文 时间:
2015-02-09 10:44:59
阅读次数:
176
Problem F
Solve It
Input: standard input
Output: standard output
Time Limit: 1 second
Memory Limit: 32 MB
Solve the equation:
p*e-x+ q*sin(x) + r*cos(x) + s*tan(x) + t*x2 + u = 0
...
分类:
其他好文 时间:
2015-02-05 15:05:05
阅读次数:
182