Page 278 - CITS - CSA - TP (Volume 1) - Hindi
P. 278

कंप्यूटर सॉफ्टवेयर एप्लीकेशन- CITS




           टा  7: कॉमन मैथ फं  न

           बेिसक अथ मैिटक फं  न:

              abs($number): Returns the absolute (positive) value of a number.
              round($number, $precision = 0): Rounds a number to a specified number of decimal places.

              ceil($number): Rounds a number up to the nearest integer.
              floor($number): Rounds a number down to the nearest integer.
              min($number1, $number2, ...): Returns the smallest value from a list of numbers.

              max($number1, $number2, ...): Returns the largest value from a list of numbers.
              pow($base, $exponent): Returns the base raised to the power of the exponent.
              sqrt($number): Returns the square root of a number.

              Trigonometric Functions:

              sin($angle): Returns the sine of an angle in radians.
              cos($angle): Returns the cosine of an angle in radians.
              tan($angle): Returns the tangent of an angle in radians.

              asin($number): Returns the arcsine of a number (in radians).
              acos($number): Returns the arccosine of a number (in radians).

              atan($number): Returns the arctangent of a number (in radians).
              Logarithmic Functions:

              log($number, $base = M_E): Returns the logarithm of a number to a specified base (default is natural logarithm, base e).

              exp($number): Returns the value of e raised to the power of a number.
              Number Base Conversion Functions:

              base_convert($number, $frombase, $tobase): Converts a number between arbitrary bases.

              bindec($binary_string): Converts a binary string to a decimal number.
              decbin($number): Converts a decimal number to a binary string.

              dechex($number): Converts a decimal number to a hexadecimal string.

              hexdec($hex_string): Converts a hexadecimal string to a decimal number.

              Other Mathematical Functions:
              pi(): Returns the value of pi.

              deg2rad($number): Converts degrees to radians.

              rad2deg($number): Converts radians to degrees.

              fmod($x, $y): Returns the floating-point remainder of x divided by y.









                                                           262

                                     CITS : IT & ITES - क ं  ूटर सॉ वेयर ए ीक े शन - अ ास 53
   273   274   275   276   277   278   279   280   281   282   283