Vous êtes sur la page 1sur 1

TUTORIAL 3 1. Function ( ) for and its inverse function with . Write a program to calculate ( ) and ( ).

( )

( ) is

2. Write a probram to compute the rim area of a washer with the diameters for the inner and outer circles of 3 and 5 centimeters, respectively. 3. The straight-line distance of two points ( calculated by the formula ( ) ) and ( ) in a Cartesian plane can be

) ,

Write a program to calculate the distance for a point (i) (2,3) and (4,5) (ii) (4,3) and (6,5) (iii) (1,3) and (4,2) 4. Solve the following quadratic equation. If there is no solution in the real domain, the result of NaN, which stands for Not-a-Number, mught be printed out. (a) (b) 5. Calculate the value of the following functions for each one at (a) (b) (c) (d) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) and

Vous aimerez peut-être aussi