Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilettante258 authored Apr 16, 2024
1 parent acd20c0 commit 8325fb6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
21 changes: 16 additions & 5 deletions Task3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ hold off;

## 3

设$f(x)=\begin{cases}x^2,&x\geq2,\\\x+2,&x<2,\end{cases}$求$f(2)$, $f( - 2)$.
设$f(x)=\left\{\begin{matrix}x^2,&x\geq2,\\\ x+2,&x<2,\end{matrix}\right.$求$f(2)$, $f( - 2)$.

代码:

Expand Down Expand Up @@ -321,7 +321,9 @@ r

> r = 0.3333
11\. 用曲面表示函数$z = x^{3} + y^{3}$
## 11

用曲面表示函数$z = x^{3} + y^{3}$

\(1\) 使用 ezsurf 函数画。 (2)不使用ezsurf 函数画。

Expand Down Expand Up @@ -355,7 +357,9 @@ surf(X,Y,Z)

<img src="https://pic.wang1m.tech/uploads/2404/661e4b72a3d77.png" alt="image-20240416175706249" style="zoom:67%;" />

12\. 绘制$z = \frac{\cos x\sin y}{y}$的完整光滑曲面。其中,x$\in$\[-2π,2π\],y$\in$\[-2π,2π\]。(不能使用ezsurf,ezmesh)。
## 12

绘制$z = \frac{\cos x\sin y}{y}$的完整光滑曲面。其中,x$\in$\[-2π,2π\],y$\in$\[-2π,2π\]。(不能使用ezsurf,ezmesh)。

代码:

Expand All @@ -378,7 +382,9 @@ title(str,'Interpreter','latex')

<img src="https://pic.wang1m.tech/uploads/2404/661e4b83717e4.png" alt="image-20240416175723080" style="zoom:80%;" />

13\. 在 0≤x≤2π 区间内,分别用红色虚线和蓝色实线绘制曲线$y1=2e^{- 0.5x}$和y2=cos(4πx),给图形加上图例"Y1","Y2",,在坐标为(0.8,1.5)处为y1 曲线加上文本说明"曲线 y1=2e\^{-0.5x})";在坐标为(2.5,1.1)处为曲线y2加上文本说明"曲线 y2=cos(4{\\pi}x))"; 对x、y轴加上标签"Variable X","Variable y".
## 13

在 0≤x≤2π 区间内,分别用红色虚线和蓝色实线绘制曲线$y1=2e^{- 0.5x}$和y2=cos(4πx),给图形加上图例"Y1","Y2",,在坐标为(0.8,1.5)处为y1 曲线加上文本说明"曲线 y1=2e\^{-0.5x})";在坐标为(2.5,1.1)处为曲线y2加上文本说明"曲线 y2=cos(4{\\pi}x))"; 对x、y轴加上标签"Variable X","Variable y".

代码:

Expand Down Expand Up @@ -407,7 +413,12 @@ hold off

<img src="https://pic.wang1m.tech/uploads/2404/661e4b90d439d.png" alt="image-20240416175736310" style="zoom:80%;" />

14\. 在同一平面中的两个窗口分别画出心形线$\begin{cases}x=a(1-\cos\theta)\cos\theta\\y=a(1-\cos\theta)\sin\theta\end{cases}$和马鞍面$\frac{x^{2}}{a^{2}} - \frac{y^{2}}{b^{2}} = 2z$,其中,a取学号末尾数字,b取1到10之间的随机整数。
## 14

在同一平面中的两个窗口分别画出心形线$\left\{ \begin{array}{r}
x = a\left( 1 - \cos\theta \right)\cos\theta \\\
y = a\left( 1 - \cos\theta \right)\sin\theta
\end{array} \right.\ $和马鞍面$\frac{x^{2}}{a^{2}} - \frac{y^{2}}{b^{2}} = 2z$,其中,a取学号末尾数字,b取1到10之间的随机整数。

代码:

Expand Down
13 changes: 5 additions & 8 deletions Task4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ e = eig(A)

计算极限
$$
\lim_{x \rightarrow \infty}\left( 3^{x} + 9^{x} \right)^{\frac{1}{x}},\lim_{y \rightarrow 0^{+}}{\lim_{x \rightarrow 0^{+}}\frac{\ln{(2x + e^{- y})}}{\sqrt{x^{3} + y^{2}}}},\\\
\lim_{x \rightarrow \infty}\frac{\ln{(1 + \frac{1}{x})}}{{arccot}x},\lim_{x \rightarrow 0}\frac{1 - \sqrt{1 - x^{2}}}{e^{x} - \cos x}
\lim_{x \rightarrow \infty}\left( 3^{x} + 9^{x} \right)^{\frac{1}{x}},\lim_{y \rightarrow 0^{+}}{\lim_{x \rightarrow 0^{+}}\frac{\ln{(2x + e^{- y})}}{\sqrt{x^{3} + y^{2}}}},\\\ \lim_{x \rightarrow \infty}\frac{\ln{(1 + \frac{1}{x})}}{\arccot x},\lim_{x \rightarrow 0}\frac{1 - \sqrt{1 - x^{2}}}{e^{x} - \cos x}
$$

代码:
Expand Down Expand Up @@ -95,9 +94,7 @@ s3=simplify(s3)
>
> s2 = $\frac{\pi^{2}}{6}$
>
> s3 = $\{\begin{matrix}
> atanh(\frac{1}{2\, x + 1}) & \text{ if }1 < |2\, x + 1|
> \end{matrix}$
> s3 = $\{\begin{matrix} atanh(\frac{1}{2\, x + 1}) & \text{ if }1 < |2\, x + 1| \end{matrix}$
## 5

Expand Down Expand Up @@ -228,7 +225,7 @@ intf(f5,x)
```matlab
syms x y;
f=(x-y)^3*sin(x+2*y);
Ix=simplify(int(f,y,-x,x)
Ix=simplify(int(f,y,-x,x))
```

输出:
Expand All @@ -240,7 +237,7 @@ Ix=simplify(int(f,y,-x,x)

用solve和vpasolve求解:

\(1\) $x^{2} + x + 1$;
(1) $x^{2} + x + 1$;

(2) $3x^{5} - 4x^{3} + 2x - 1$;

Expand Down Expand Up @@ -414,7 +411,7 @@ S = dsolve(eqn, conds)

计算导数:$y = \frac{1 + \sin x}{1 - \cos x}$, $y = \begin{bmatrix}
\arcsin x & \arccos x \\\
\arctan x & {arccot}x
\arctan x & \arccot x
\end{bmatrix}$.

代码:
Expand Down
5 changes: 2 additions & 3 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ blockquote p {

img {
display: block;
margin-left: auto;
margin-right: auto;
margin: 8px auto;
max-width: 100%; /* 使图片不会超过其父元素的宽度 */
height: auto; /* 保持图片的原始宽高比 */
border-radius: 10px; /* 给图片添加圆角 */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* 给图片添加阴影 */
transition: transform .2s; /* 动画过渡效果 */
transition: transform .3s; /* 动画过渡效果 */
}

img:hover {
Expand Down

0 comments on commit 8325fb6

Please sign in to comment.