Computing Tools For Mathematics(COMP1118) ) Topic : Problem for practice

Computing Tools For Mathematics(COMP1118)
Instructor : Engineer Imran Ahmad
University Of Okara (Renala Campus)

Lesson 3 :Problem for practice

Problem #01

Write A Program To Calculate  Area Of A Circle Having Radius R=3m.
Ans: 28.2743


Problem #02
 Suppose that x=3 and y=4  use the MATLAB to evaluate the expression:
                   a)      w=(𝑥^2 𝑦^3)/〖(𝑥−𝑦)〗^2
                   𝑏)      𝑧=2/(𝑦^2 〖(𝑥+𝑦)〗^2 )
 Ans : a)   w=576
 Ans : b)   z=0.0026

Problem #03
 Write a program  to find out the distance between two points (𝑥1,𝑦1) and (𝑥2,𝑦2) specified by the user , on a Cartesian coordinates plane.
 Hint     d=√(〖(𝑥1−𝑥2)〗^2+ 〖(𝑦1−𝑦2)〗^2 )

Comments

Popular posts from this blog

Zong Whatsapp Packages 2019

Statical Theory -Chapter 4 Measure Of Dispersion, Moments and Skewness