SlideShare a Scribd company logo
MATH CLASS (System.Math)
M3 COMPUTER SCIENCE CLASS – TERM 2
THE PRINCE ROYAL'S COLLEGE
MATH CLASS
Math.Pow – raises the value of a base to a power
Syntax: Math.Pow (double X, double Y)
where X is the base and Y is the exponent (XY)
Example:
Double a = 4;
Double b = 3;
C = Math.Pow (a , b);
This means C = ab therefore, C = 43 so, C = 64
MATH CLASS
Math.Sqrt – finds the square root of a number
Syntax: Math.Sqrt (double X)
finds the Square Root of X
Example:
Double a = 4;
C = Math.Sqrt(a);
This means C = 𝑎 therefore, C = 4 so, C = 2
MATH CLASS
Math.PI – gives out the value of  (pi)
Example:
// The circumference of the circle C = 2r
Double r = 1;
C = 2 * Math.PI * r;
This means C = 2  r ∗ therefore, C =2 so, C =
6.28318530718…
MATH CLASS
Math.Round – rounds off a number
Syntax: Math.Rounds (decimal X, int Y)
Rounds the decimal number X, to Y decimal places
Example:
// Rounding the value of  to two decimal places
Double pi;
pi = Math Round(Math.PI , 2)
This means pi = 3.14159265359… rounded off to two decimal places,
so pi=3.14
MATH METHODS
For more info on the Math Class go to:
https://msdn.microsoft.com/en-
us/library/System.Math%28v=vs.110%29.aspx
THE END

More Related Content

What's hot

Es1 taybi 24 1-2019
Es1 taybi 24 1-2019Es1 taybi 24 1-2019
Es1 taybi 24 1-2019
RitaAbourjeily1
 
1 ESO - Unit 03 - Exercises 3.5 - HCF
1 ESO - Unit 03 - Exercises 3.5 - HCF1 ESO - Unit 03 - Exercises 3.5 - HCF
1 ESO - Unit 03 - Exercises 3.5 - HCF
Gogely The Great
 
Chapter 4 review
Chapter 4 reviewChapter 4 review
Chapter 4 reviewgregcross22
 
Section 10.2 ellipse
Section 10.2 ellipseSection 10.2 ellipse
Section 10.2 ellipsejanetvmiller
 
8th pre alg -l39
8th pre alg -l398th pre alg -l39
8th pre alg -l39jdurst65
 
2.3 slopes and difference quotient t
2.3 slopes and difference quotient t2.3 slopes and difference quotient t
2.3 slopes and difference quotient t
math260
 
Matematica ecuacion
Matematica ecuacionMatematica ecuacion
Matematica ecuacion
cinthiavalente1
 
1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers
Jan Plaza
 
Ap calculus extrema v2
Ap calculus extrema v2Ap calculus extrema v2
Ap calculus extrema v2gregcross22
 
Areas of bounded regions
Areas of bounded regionsAreas of bounded regions
Areas of bounded regionsHimani Asija
 
Assignment 3-ch#2
Assignment 3-ch#2Assignment 3-ch#2
Assignment 3-ch#2
Said Azar
 
SL Formulabooklet
SL FormulabookletSL Formulabooklet
SL Formulabooklet
nayaks3
 
Quadratic equations1
Quadratic equations1Quadratic equations1
Quadratic equations1dgarvey
 
Compression of “noisy” measurement data for plotting with TikZ and pgfplots
Compression of “noisy” measurement data for plotting with TikZ and pgfplotsCompression of “noisy” measurement data for plotting with TikZ and pgfplots
Compression of “noisy” measurement data for plotting with TikZ and pgfplots
Mathias Magdowski
 

What's hot (20)

Alg1 7.8 Point-Slope Form
Alg1 7.8 Point-Slope FormAlg1 7.8 Point-Slope Form
Alg1 7.8 Point-Slope Form
 
Es1 taybi 24 1-2019
Es1 taybi 24 1-2019Es1 taybi 24 1-2019
Es1 taybi 24 1-2019
 
1 ESO - Unit 03 - Exercises 3.5 - HCF
1 ESO - Unit 03 - Exercises 3.5 - HCF1 ESO - Unit 03 - Exercises 3.5 - HCF
1 ESO - Unit 03 - Exercises 3.5 - HCF
 
Chapter 4 review
Chapter 4 reviewChapter 4 review
Chapter 4 review
 
Section 10.2 ellipse
Section 10.2 ellipseSection 10.2 ellipse
Section 10.2 ellipse
 
8th pre alg -l39
8th pre alg -l398th pre alg -l39
8th pre alg -l39
 
2.3 slopes and difference quotient t
2.3 slopes and difference quotient t2.3 slopes and difference quotient t
2.3 slopes and difference quotient t
 
Special factor patterns
Special factor patternsSpecial factor patterns
Special factor patterns
 
Matematica ecuacion
Matematica ecuacionMatematica ecuacion
Matematica ecuacion
 
Bcs 012 0613
Bcs 012 0613Bcs 012 0613
Bcs 012 0613
 
Roots T
Roots TRoots T
Roots T
 
1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers
 
Ap calculus extrema v2
Ap calculus extrema v2Ap calculus extrema v2
Ap calculus extrema v2
 
Areas of bounded regions
Areas of bounded regionsAreas of bounded regions
Areas of bounded regions
 
Alg2 lesson 8-3
Alg2 lesson 8-3Alg2 lesson 8-3
Alg2 lesson 8-3
 
Assignment 3-ch#2
Assignment 3-ch#2Assignment 3-ch#2
Assignment 3-ch#2
 
Alg2 lesson 6-1
Alg2 lesson 6-1Alg2 lesson 6-1
Alg2 lesson 6-1
 
SL Formulabooklet
SL FormulabookletSL Formulabooklet
SL Formulabooklet
 
Quadratic equations1
Quadratic equations1Quadratic equations1
Quadratic equations1
 
Compression of “noisy” measurement data for plotting with TikZ and pgfplots
Compression of “noisy” measurement data for plotting with TikZ and pgfplotsCompression of “noisy” measurement data for plotting with TikZ and pgfplots
Compression of “noisy” measurement data for plotting with TikZ and pgfplots
 

Viewers also liked

몬드리안 달력
몬드리안 달력몬드리안 달력
몬드리안 달력sulzan2
 
Banner Design Tips
Banner Design TipsBanner Design Tips
Banner Design Tips
"Filniño Edmar Ambos"
 
Photoshop Poster Color Tips for M1 Class
Photoshop Poster Color Tips for M1 ClassPhotoshop Poster Color Tips for M1 Class
Photoshop Poster Color Tips for M1 Class
"Filniño Edmar Ambos"
 
rewardhebatsemangat
rewardhebatsemangatrewardhebatsemangat
rewardhebatsemangat
Adelia Firnanda
 
Lesson1: Introduction to Programming
Lesson1: Introduction to ProgrammingLesson1: Introduction to Programming
Lesson1: Introduction to Programming
"Filniño Edmar Ambos"
 
Sectiuni in corpuri geometrice_catinca Alina
Sectiuni in corpuri geometrice_catinca AlinaSectiuni in corpuri geometrice_catinca Alina
Sectiuni in corpuri geometrice_catinca Alina
Alina Catinca
 

Viewers also liked (6)

몬드리안 달력
몬드리안 달력몬드리안 달력
몬드리안 달력
 
Banner Design Tips
Banner Design TipsBanner Design Tips
Banner Design Tips
 
Photoshop Poster Color Tips for M1 Class
Photoshop Poster Color Tips for M1 ClassPhotoshop Poster Color Tips for M1 Class
Photoshop Poster Color Tips for M1 Class
 
rewardhebatsemangat
rewardhebatsemangatrewardhebatsemangat
rewardhebatsemangat
 
Lesson1: Introduction to Programming
Lesson1: Introduction to ProgrammingLesson1: Introduction to Programming
Lesson1: Introduction to Programming
 
Sectiuni in corpuri geometrice_catinca Alina
Sectiuni in corpuri geometrice_catinca AlinaSectiuni in corpuri geometrice_catinca Alina
Sectiuni in corpuri geometrice_catinca Alina
 

Similar to Math Class (System.Math)

3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...
3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...
3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Notes and formulae mathematics
Notes and formulae mathematicsNotes and formulae mathematics
Notes and formulae mathematics
Zainonie Ma'arof
 
Mathematics formulas
Mathematics formulasMathematics formulas
Mathematics formulas
Thanussha Ragu
 
Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM
Zhang Ewe
 
Notes and-formulae-mathematics
Notes and-formulae-mathematicsNotes and-formulae-mathematics
Notes and-formulae-mathematicsAh Ching
 
Rumus matematik examonline spa
Rumus matematik examonline spaRumus matematik examonline spa
Rumus matematik examonline spa
Mohammad Hafiz Bin Hamzah, M. Sc.
 
Practice questions( calculus ) xii
Practice questions( calculus ) xiiPractice questions( calculus ) xii
Practice questions( calculus ) xii
indu psthakur
 
Kuiz Add Maths
Kuiz Add MathsKuiz Add Maths
Kuiz Add Mathsmorabisma
 
3rd Semester (June; July-2015) Civil Engineering Question Paper
3rd Semester (June; July-2015) Civil Engineering Question Paper3rd Semester (June; July-2015) Civil Engineering Question Paper
3rd Semester (June; July-2015) Civil Engineering Question Paper
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Class 10 Cbse Maths 2010 Sample Paper Model 3
Class 10 Cbse Maths 2010 Sample Paper Model 3 Class 10 Cbse Maths 2010 Sample Paper Model 3
Class 10 Cbse Maths 2010 Sample Paper Model 3
Sunaina Rawat
 
March 26, 2015
March 26, 2015March 26, 2015
March 26, 2015khyps13
 
Chapter 6 coordinate geometry
Chapter 6  coordinate geometryChapter 6  coordinate geometry
Chapter 6 coordinate geometryatiqah ayie
 
357402584 242463893-pt3-trial-mathematics-pdf
357402584 242463893-pt3-trial-mathematics-pdf357402584 242463893-pt3-trial-mathematics-pdf
357402584 242463893-pt3-trial-mathematics-pdf
SyahidaZamri1
 
1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf
jeeteshmalani1
 
Examen final (2 d 10)
Examen final (2 d   10)Examen final (2 d   10)
Examen final (2 d 10)
ACceresMamani
 
Analytic geometry lecture1
Analytic geometry lecture1Analytic geometry lecture1
Analytic geometry lecture1
admercano101
 
5 3 factoring trinomial ii
5 3 factoring trinomial ii5 3 factoring trinomial ii
5 3 factoring trinomial iimath123a
 
Class x
Class xClass x
Math 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxMath 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docx
andreecapon
 

Similar to Math Class (System.Math) (20)

3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...
3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...
3rd Semester Electronic and Communication Engineering (June/July-2015) Questi...
 
Notes and formulae mathematics
Notes and formulae mathematicsNotes and formulae mathematics
Notes and formulae mathematics
 
Mathematics formulas
Mathematics formulasMathematics formulas
Mathematics formulas
 
Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM
 
Notes and-formulae-mathematics
Notes and-formulae-mathematicsNotes and-formulae-mathematics
Notes and-formulae-mathematics
 
Rumus matematik examonline spa
Rumus matematik examonline spaRumus matematik examonline spa
Rumus matematik examonline spa
 
Practice questions( calculus ) xii
Practice questions( calculus ) xiiPractice questions( calculus ) xii
Practice questions( calculus ) xii
 
Kuiz Add Maths
Kuiz Add MathsKuiz Add Maths
Kuiz Add Maths
 
3rd Semester (June; July-2015) Civil Engineering Question Paper
3rd Semester (June; July-2015) Civil Engineering Question Paper3rd Semester (June; July-2015) Civil Engineering Question Paper
3rd Semester (June; July-2015) Civil Engineering Question Paper
 
Coordinate geometry
Coordinate geometryCoordinate geometry
Coordinate geometry
 
Class 10 Cbse Maths 2010 Sample Paper Model 3
Class 10 Cbse Maths 2010 Sample Paper Model 3 Class 10 Cbse Maths 2010 Sample Paper Model 3
Class 10 Cbse Maths 2010 Sample Paper Model 3
 
March 26, 2015
March 26, 2015March 26, 2015
March 26, 2015
 
Chapter 6 coordinate geometry
Chapter 6  coordinate geometryChapter 6  coordinate geometry
Chapter 6 coordinate geometry
 
357402584 242463893-pt3-trial-mathematics-pdf
357402584 242463893-pt3-trial-mathematics-pdf357402584 242463893-pt3-trial-mathematics-pdf
357402584 242463893-pt3-trial-mathematics-pdf
 
1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf
 
Examen final (2 d 10)
Examen final (2 d   10)Examen final (2 d   10)
Examen final (2 d 10)
 
Analytic geometry lecture1
Analytic geometry lecture1Analytic geometry lecture1
Analytic geometry lecture1
 
5 3 factoring trinomial ii
5 3 factoring trinomial ii5 3 factoring trinomial ii
5 3 factoring trinomial ii
 
Class x
Class xClass x
Class x
 
Math 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxMath 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docx
 

Recently uploaded

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 

Recently uploaded (20)

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 

Math Class (System.Math)

  • 1. MATH CLASS (System.Math) M3 COMPUTER SCIENCE CLASS – TERM 2 THE PRINCE ROYAL'S COLLEGE
  • 2. MATH CLASS Math.Pow – raises the value of a base to a power Syntax: Math.Pow (double X, double Y) where X is the base and Y is the exponent (XY) Example: Double a = 4; Double b = 3; C = Math.Pow (a , b); This means C = ab therefore, C = 43 so, C = 64
  • 3. MATH CLASS Math.Sqrt – finds the square root of a number Syntax: Math.Sqrt (double X) finds the Square Root of X Example: Double a = 4; C = Math.Sqrt(a); This means C = 𝑎 therefore, C = 4 so, C = 2
  • 4. MATH CLASS Math.PI – gives out the value of  (pi) Example: // The circumference of the circle C = 2r Double r = 1; C = 2 * Math.PI * r; This means C = 2  r ∗ therefore, C =2 so, C = 6.28318530718…
  • 5. MATH CLASS Math.Round – rounds off a number Syntax: Math.Rounds (decimal X, int Y) Rounds the decimal number X, to Y decimal places Example: // Rounding the value of  to two decimal places Double pi; pi = Math Round(Math.PI , 2) This means pi = 3.14159265359… rounded off to two decimal places, so pi=3.14
  • 6. MATH METHODS For more info on the Math Class go to: https://msdn.microsoft.com/en- us/library/System.Math%28v=vs.110%29.aspx