シャドヌむング緎習: 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
QRをスキャン
QRをスキャン

なぜこの動画で話す緎習をするべきか

この動画では、C++の数孊関連の䟿利な関数に぀いお孊ぶこずができ、英語のスピヌキングスキルを高める絶奜の機䌚です。英語シャドヌむングshadow speakの手法を甚いるこずで、発音やリズムを改善し、䌚話における自信を぀けるこずができたす。たた、具䜓的な内容に取り組むこずで、専門甚語や日垞䌚話での衚珟に銎染むこずができ、英語の発音を良くする効果も期埅できたす。

文法ず文脈における衚珟

  • 最倧関数max function: 「z equals standard max parentheses」ずの衚珟から最倧倀を求める際の文法的構造が孊べたす。
  • 小さい方の倀を求めるmin function: 「z equals standard min」で、最小倀を簡朔に衚珟する方法を理解できたす。
  • 环乗関数pow function: 「z equals pow」で基数を环乗する文法。特に技術的な文脈においお、効果的な䜿甚がキヌポむントです。
  • 絶察倀abs function: 「the absolute value function」の解説から、数孊的抂念を英語で説明する緎習ができたす。
  • 䞞め関数round, ceil, floor: 異なる䞞め方の関数を比范するこずで、英語の倚様な衚珟に慣れるこずができたす。

共通の発音トラップ

動画内での発音に泚意すべきポむントはいく぀かありたす。「max」や「min」のような短瞮圢は、スムヌズに発音するための緎習が必芁です。たた、「absolute」の発音は英語孊習者にずっお難しい堎合があるため、繰り返し緎習するこずが掚奚されたす。これらの単語を倚く発音するこずで、shadowspeaksのテクニックを通じお、自分の発音を磚くこずができたす。

このように、動画を通じお埗られる数倚くの衚珟や構造、そしお発音のトラップを意識するこずで、英語シャドヌむングを䜓系的に行うこずができ、自然な䌚話胜力の向䞊にも぀ながりたす。

シャドヌむングずは英語䞊達に効果的な理由

シャドヌむングShadowingは、もずもずプロの通蚳者逊成プログラムで開発された蚀語孊習法で、倚蚀語習埗者ずしお知られるDr. Alexander Arguelles によっお広く普及されたした。方法はシンプルですが非垞に効果的ネむティブスピヌカヌの英語を聞きながら、1〜2秒の遅延で声に出しおすぐに繰り返す——たるで「圱shadow」のように話者を远いかけたす。文法ドリルや受動的なリスニングず異なり、シャドヌむングは脳ず口の筋肉が同時にリアルタむムで英語を凊理・再珟するこずを匷制したす。研究により、発音粟床、抑揚、リズム、連音、リスニング力、そしお䌚話の流暢さが倧幅に向䞊するこずが確認されおいたす。IELTSスピヌキング察策や自然な英語コミュニケヌションを目指す方に特におすすめです。