将要考GESP 7级的本蒻姬一看考级需要知识点
[外链图片转存中…(img-PPhGvNZl-1722686909776)]
看到第一项脑袋直接炸掉了
三角函数
e m m m . . . . . . . . . . emmm.......... emmm..........
A I AI AI 给出以下答案
三角函数是数学中的一组基本函数,它们在解决与角度、边长和比率相关的几何问题时非常有用。三角函数主要包括正弦函数( s i n e , sin sine, \sin sine,sin)、余弦函数( c o s i n e , cos cosine, \cos cosine,cos)、正切函数( t a n g e n t , tan tangent, \tan tangent,tan)、余切函数( c o t a n g e n t , cot cotangent, \cot cotangent,cot)、正割函数( s e c a n t , sec secant, \sec secant,sec)和余割函数( c o s e c a n t , csc cosecant, \csc cosecant,csc)。这些函数定义如下:
-
正弦函数( sin \sin sin ): 对于一个直角三角形中的角度 θ \theta θ,正弦值等于对边长度除以斜边长度。 sin ( θ ) = 对边 斜边 \sin(\theta) = \cfrac{对边}{斜边} sin(θ)=斜边对边 。
-
余弦函数( cos \cos cos): 在同一三角形中,余弦值等于邻边长度除以斜边长度。 cos ( θ ) = 邻边 斜边 \cos(\theta) = \cfrac{邻边}{斜边} cos(θ)=斜边邻边。
-
正切函数( tan \tan tan): 正切等于正弦除以余弦, tan ( θ ) = sin ( θ ) cos ( θ ) = 对边 邻边 \tan(\theta) = \cfrac {\sin(\theta)}{ \cos(\theta)} = \cfrac{对边}{邻边} tan(θ)=cos(θ)sin(θ)=邻边对边,当 cos ( θ ) \cos(\theta) cos(θ)不为 0 0 0时,它是角的倾斜程度。
-
余切函数( cot \cot cot): cot ( θ ) = 1 tan ( θ ) = cos ( θ ) sin ( θ ) = 邻边 对边 \cot(\theta) = \cfrac{1}{\tan(\theta)} = \cfrac{\cos(\theta)}{ \sin(\theta)} = \cfrac{邻边}{对边} cot(θ)=tan(θ)1=sin(θ)cos(θ)=对边邻边,主要用于求解角度或边长。
-
正割函数( sec \sec sec): sec ( θ ) = 1 cos ( θ ) \sec(\theta) = \cfrac{1}{\cos(\theta)} sec(θ)=cos(θ)1,当 cos ( θ ) \cos(\theta) cos(θ)不为 0 0 0时,它表示斜边与邻边的比值。
-
余割函数( csc \csc csc): csc ( θ ) = 1 sin ( θ ) \csc(θ) = \cfrac{1}{\sin(θ)} csc(θ)=sin(θ)1,它表示斜边与对边的比值。
三角函数在物理、工程、计算机图形学等多个领域都有广泛应用。它们不仅限于角度,还可以用弧度来测量,公式会有所不同。
又问了一下老母亲老妈
假如有一个三角形 A B C ABC ABC
有
∠ A B C = θ , A B = x , B C = y , B C = r ∠ABC = \theta,AB = x,BC = y,BC = r ∠ABC=θ,AB=x,BC=y,BC=r
作者的补充
x x x是对边(一条直角边), y y y是对边(另一条直角边), r r r是斜边
那么
正弦
sin ( θ ) = x r \sin(\theta) = \cfrac{x} {r} sin(θ)=rx
余弦
cos ( θ ) = y r \cos(\theta) = \cfrac{y}{r} cos(θ)=ry
正切
tan ( θ ) = x y \tan(\theta) = \cfrac{x}{y} tan(θ)=yx
余切
cot ( θ ) = y x \cot(\theta) = \cfrac{y}{x} cot(θ)=xy
正割
e m m . . . . . . emm...... emm...... 你们应该不用
余割
e m m . . . . . . emm...... emm...... 你们应该也不用
对数函数
y = l o g a x y = log_a x y=logax
后来老师讲了“换底公式”得到:
l o g a b = l o g c b l o g c a ( c > 1 ) log_a b = \cfrac{log_c b}{log_c a}(c>1) logab=logcalogcb(c>1)
所以
y = l o g a x = l o g a b = l o g b x l o g b a ( b > 1 ) ) y = log_a x = log_a b = \cfrac{log_b x}{log_b a} (b>1)) y=logax=logab=logbalogbx(b>1))
c , b c,b c,b 通常会取 10 10 10
指数函数
y = a x y = a^x y=ax
泛洪算法
自己看吧 P1596 [USACO10OCT] Lake Counting S
哈希表
先看这个
再看这个
最后看这个
记住unordered_map
是哈希表,直接当map
用就好了