跟讀練習: Useful math related functions in C++ 🔢 - 通過影片學習英語口語

選擇練習模式

每種模式都會開啟全屏練習室。

52 句
如果句子過短或過長,請點選 Edit 進行調整。
1
Hey guys, in this video I'm going to show you 8 useful math related functions in C++.
2
Let's begin by creating 3 variables.
3
Double x, and I will set this to be 3.
4
Double y, that will be 4.
5
Then double z, we will declare this but not yet assign it.
6
The first useful math related function is the max function, which will return the greater of 2 values or variables.
7
I'll assign the result within z.
8
z equals standard max parentheses.
9
Within the parentheses, add two values or variables.
10
I'll compare x and y.
11
Then let's display the result.
12
Standard output, I would like to display whatever z is.
13
The greater number between 3 and 4 is, well, you guessed it, 4.
14
Alternatively, there's the min function.
15
z equals standard min let's compare x then y
16
so the minimum between these two values would be three
17
so that's max
18
and min now the rest of these functions are found within
19
the cmath header file at the top of our file let's
20
include cmath we have the pow function to raise a base to a given power.
21
z equals pow, or power.
22
Let's raise two to the power of three.
23
z would be eight.
24
Two to the power of four would be 16.
25
That's the power function.
26
Then we have square root z equals sqrt.
27
What's the square root of nine?
28
Well, the square root of nine is three.
29
Then we have absolute value z equals abs.
30
If you place a negative number within the absolute value function, it will give you the positive version of that number, how far it is away from zero.
31
So negative three, the absolute value of negative three would be three.
32
That is the absolute value function.
33
Next, we have the round function.
34
Let's change X to 3.14.
35
Z equals round.
36
Let's round X.
37
3.14 rounded would be three.
38
If you need to round up, there's a ceiling function.
39
Z equals seal.
40
Seal means ceiling.
41
Let's round X.
42
X rounded up is 4.
43
Alternatively, there's the floor function, which will always round down.
44
Let's change X to 3.99 to test it.
45
Z equals floor X.
46
X rounded down is three.
47
So yeah, everybody, that is a super quick video on a few useful math-related functions.
48
If you head to this URL, c++.com slash reference slash cmath, there's a lot more useful math functions that you may be interested in,
49
but we just covered a few of the basics.
50
In the next topic, we're going to create a practice program to find the hypotenuse of a right triangle.
51
So yeah, those are a few useful math-related functions in C++.
52
Thank you.

下載應用

流利口語所需的一切

AI 發音評分逐句打分
音標練習掌握每個音
詞彙學習建立你的詞庫
詞彙遊戲邊玩邊學

同頻道

FOR YOU

推薦影片

為什麼通過這個影片練習口語?

通過觀看這個影片並練習相關的數學函式,您不僅可以提高您的程式設計技能,還能提升您的英語口語表達能力。影片中所使用的簡潔示例使您可以在效果明顯的情況下,跟隨講解進行英語口語練習。這樣的學習方法能幫助您在真實語境中應用新學的詞彙和句型,從而在日常交流或雅思口語練習中表現得更加自信。

語法與表達結構分析

  • 最大值與最小值函式: 影片中提到的“max”和“min”函式使用了比較的結構。例如,當說“比較 x 和 y”時,您不僅能學習到數學概念,同時也能練習如何在英語中進行比較。
  • 冪和平方根: 函式“pow”和“sqrt”的介紹中,提供瞭如何用英語描述操作的方式。例如,“將2的3次方”可以幫助您掌握如何在描述數學運算時使用英語表達。
  • 絕對值的理解: 在解說絕對值時,使用了“If you place a negative number within the absolute value function”這樣的句型。這種條件句型的應用,對於提高理解和運用複雜句子結構有很大幫助。

常見的發音陷阱

在影片中,某些數學術語可能會給非母語者帶來發音挑戰。例如,“absolute value”這個短語中,"absolute"的發音可能會有些困難,尤其是在快節奏的對話中,容易變得模糊。練習這些術語的同時,您還可以運用“shadow speech”技巧,將其與影片中的講解進行對比,幫助提高語音的清晰度。

此外,發音相近的單詞,如“ceiling”和“sealing”,也常讓學習者混淆。通過反覆模仿和跟讀,您能夠有效地提高英語發音。

結合以上內容,通過觀看這個影片並進行口語練習,您將能有效提升自己的英語口語能力。無論是在學術交流還是日常對話中,您都能夠更自信地表達自我,達到更高的英語水平。

什麼是跟讀法?

跟讀法 (Shadowing) 是一種有科學依據的語言學習技巧,最初開發用於專業口譯員的培訓,並由多語言者Alexander Arguelles博士普及。這個方法簡單而強大:您在聽英語母語原聲的同時立即大聲重複——就像是一個延遲1-2秒緊跟說話者的影子。與被動聽力或語法練習不同,跟讀法強迫您的大腦和口腔肌肉同時處理並模模擬實的講話模式。研究表明它能顯著提高發音準確性,語調,節奏,連讀,聽力理解和口語流利度——使其成為雅思口語備考和真實英語交流最有效的方法之一。

影子跟讀法: 閱讀完整分步指南 →