跟读练习: Useful math related functions in C++ 🔢 - 通过YouTube学习英语口语

B2
Hey guys, in this video I'm going to show you 8 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.

下载应用

Everything you need to speak fluently

AI PronunciationScore every sentence
IPA PracticeMaster every sound
VocabularyBuild your word bank
Vocab GameLearn while playing

为什么通过这个视频练习口语?

通过观看这个视频并练习相关的数学函数,您不仅可以提高您的编程技能,还能提升您的英语口语表达能力。视频中所使用的简洁示例使您可以在效果明显的情况下,跟随讲解进行英语口语练习。这样的学习方法能帮助您在真实语境中应用新学的词汇和句型,从而在日常交流或雅思口语练习中表现得更加自信。

语法与表达结构分析

  • 最大值与最小值函数: 视频中提到的“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秒紧跟说话者的影子。与被动听力或语法练习不同,跟读法强迫您的大脑和口腔肌肉同时处理并模仿真实的讲话模式。研究表明它能显着提高发音准确性,语调,节奏,连读,听力理解和口语流利度——使其成为雅思口语备考和真实英语交流最有效的方法之一。

请我们喝杯咖啡