Студопедия
Случайная страница | ТОМ-1 | ТОМ-2 | ТОМ-3
АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатика
ИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханика
ОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторика
СоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансы
ХимияЧерчениеЭкологияЭкономикаЭлектроника

Intrinsic SCILAB Functions

Читайте также:
  1. A. functions with combination of features
  2. About Global and Slot Functions
  3. Describe your ideal printer, its functions and features. (p.38,39)
  4. Diplomatic Immunity, Credentials and the Functions of Missions
  5. Ex. 31. Analyze the functions of It. Translate the sentences.
  6. Express your point of view about missions, functions and problems of higher education in modern world.
  7. Find all the sentences with subordinate clauses in the text. Define their functions.

SCILAB provides a large number of standard elementary mathematical functions, including abs , sqrt, exp, and sin. Taking the square root or logarithm of a negative number is not an error; the appropriate complex result is produced automatically. SCILAB also provides many more advanced mathematical functions. For a list of the elementary mathematical functions, type >> help elfun

For a list of more advanced mathematical and matrix functions, type

>>help specfun and >> help elmat

Some of the functions, like sqrt and sin, are built in. Built-in functions are part of the SCILAB core so they are very efficient, but the computational details are not readily accessible. There are some differences between built-in functions and other functions. For example, for built-in functions, you cannot see the code. For other functions, you can see the code and even modify it if you want.

Several special functions provide values of useful constants.

%pi 3.14159265...
%eps Floating-point relative precision,
%inf Infinity
%nan Not-a-number
%e Number e=2.7182818

Infinity is generated by dividing a nonzero value by zero, or by evaluating well defined mathematical expressions that overflow, i.e., exceed realmax. Not-a-number is generated by trying to evaluate expressions like 0/0 or Inf-Inf that do not have well defined mathematical values.

The function names are not reserved. It is possible to overwrite any of them with a new variable, such as eps = 1.e-6 and then use that value in subsequent calculations. The original function can be restored with clear eps.

 

 

Table 4.1 - SCILAB Functions

Function Description
sin(x) sinus of x; x in radians
cos(x) cosinus of x; x in radians
tan(x) tangent of x; x in radians
sec(x) secant of x; x in radians
csc(x) cosecant of x; x in radians
cot(x) cotangent of x; x in radians
asin(x) arc sinus of x
sinh(x) hyperbolic sinus of x
asinh(x) inverse hyperbolic sinus of x
exp(x) exponential of x -
log(x) natural logarithm of x -
log10(x) base 10 logarithm of x -
sqrt(x) square root of x -
power(x,a) x to the power of a -
abs(x) absolute value of x -
round(x) round x towards nearest integer
floor(x) round x towards minus infinity
ceil(x) Round x towards infinity

Дата добавления: 2015-10-29; просмотров: 136 | Нарушение авторских прав


Читайте в этой же книге: The Basic Opportunities of Spreadsheets | Calculations in Calc. Creating and Coping Formulas | Multiple Data Sets in One Graph | Plotting Lines and Markers | Printing from the Menu | Individual Tasks |
<== предыдущая страница | следующая страница ==>
Operators. Expressions use familiar arithmetic operators and precedence rules.| Examples of Expressions

mybiblioteka.su - 2015-2024 год. (0.006 сек.)