ฝึกพูดภาษาอังกฤษด้วยเทคนิค Shadowing จากวิดีโอ: Useful math related functions in C++ 🔢

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
สแกนเพื่อดาวน์โหลด
สแกนเพื่อดาวน์โหลด

ทำไมต้องฝึกพูดกับวิดีโอนี้?

การฝึกพูดเป็นสิ่งจำเป็นในการพัฒนาทักษะการสื่อสารภาษาอังกฤษ การดูวิดีโอที่สอนการใช้ฟังก์ชันทางคณิตศาสตร์ใน C++ นอกจากจะทำให้เราได้เรียนรู้เกี่ยวกับโปรแกรมแล้ว ยังช่วยให้เราได้ยินการออกเสียงที่ถูกต้อง และสร้างความมั่นใจในการพูด โดยเฉพาะเมื่อใช้เทคนิค shadow speech ซึ่งเป็นวิธีที่ทำให้คุณสามารถจำลองเสียงของผู้พูดได้อย่างใกล้ชิด เทคนิคนี้จะช่วยให้คุณได้ฝึกพูดตามและปรับปรุงการใช้ภาษาของคุณผ่านการเรียนรู้จาก เรียนภาษาอังกฤษจากยูทูป ที่ให้ความรู้ในรูปแบบที่สนุกสนานและมีประสิทธิภาพ

ไวยากรณ์และสำนวนในบริบท

จากการวิเคราะห์วิดีโอ เราสามารถสังเกตเห็นโครงสร้างและสำนวนที่สำคัญที่ผู้พูดใช้ดังนี้:

  • การเปรียบเทียบค่า: การพูดถึงค่า maximum และ minimum เช่น “The greater number between 3 and 4 is 4.” ซึ่งแสดงให้เห็นถึงการใช้ comparative forms เพื่อแสดงความแตกต่าง
  • การใช้งานฟังก์ชัน: การอธิบายการใช้ฟังก์ชันต่างๆ เช่น “z equals standard max.” ซึ่งเป็นการใช้โครงสร้าง verb + object ได้อย่างถูกต้อง
  • การถามคำถาม: เช่น “What’s the square root of nine?” การใช้ interrogative form เพื่อกระตุ้นให้ผู้เรียนสงสัยและต้องการหาคำตอบ

ปัญหาการออกเสียงที่ควรระวัง

ในวิดีโอ มีคำและเสียงที่อาจทำให้ผู้เรียนต้องระวังในการออกเสียง ได้แก่:

  • absolute: ผู้พูดออกเสียงว่า “แอบโซลูท” ซึ่งมักเป็นปัญหาสำหรับผู้เรียนในการแยกเสียง “b” และ “s” อย่างชัดเจน
  • round: เสียงนี้อาจทำให้ผู้เรียนลำบากเนื่องจากมีเสียง “r” ที่ต้องออกเสียงอย่างแม่นยำ
  • function: การแยกเสียง “sh” และ “f” อาจทำให้เกิดความสับสนในบางกรณี

การฝึกร่วมกับคำศัพท์และโครงสร้างการพูดที่พบในวิดีโอนี้จะช่วยให้คุณสามารถพัฒนาทักษะการพูดและการฟังได้ดียิ่งขึ้น ผ่านการ ฝึกพูดภาษาอังกฤษ อย่างมีประสิทธิภาพ

เทคนิค Shadowing คืออะไร?

Shadowing เป็นเทคนิคการเรียนรู้ภาษาที่ได้รับการรับรองทางวิทยาศาสตร์ พัฒนาขึ้นสำหรับการฝึกนักแปลมืออาชีพ วิธีการนี้เรียบง่ายแต่ทรงพลัง: คุณฟังเสียงภาษาอังกฤษจากเจ้าของภาษาและพูดตามทันที — เหมือนเงาที่ตามผู้พูดด้วยช่วงเวลาห่าง 1-2 วินาที การวิจัยแสดงว่าเทคนิคนี้ปรับปรุงความแม่นยำในการออกเสียง ทำนองเสียง จังหวะ การเชื่อมเสียง การฟังเข้าใจ และความคล่องแคล่วในการพูดได้อย่างมีนัยสำคัญ

เลี้ยงกาแฟเราสักแก้ว