SA2 Reviewew Flashcards

1
Q

are used for integer or real type objects but not for complex numbers.

A

math() function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Return the value of pi: 3.141592

A

Pi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Return the value of natural base e. e is 0.718282

A

E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Returns the value of tau. tau = 6.283185

A

tau

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Returns the infinite

A

inf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Not a number type

A

nan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

It returns the ceiling value which is the smallest value, greater or equal to the number x.

A

Ceil(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Returns the number of x and copy the sign of y to x.

A

copysign(x, y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Return absolute value of x.

A

fabs(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Returns factorial of x where x>=0

A

factorial(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Returns the floor value which is the largest integer, less or equal to the number x

A

floor(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Returns sum of the elements in an iterable object

A

fsum(iterable)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Returns the greatest common divisor of x and y.

A

gcd(x,y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Checks whether x is neither an infinity nor nan

A

isfinite(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Checks if x is infinity

A

isinf(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Checks whether s is not a number

A

isnan(s)

17
Q

Find remainder after dividing x by y.

A

remainder(x,y)

18
Q

are used to calculate different power and logarithmic related tasks in python:

A

Power and Logarithmic Functions

19
Q

Return- x to the power y value

A

pow(x,y)

20
Q

Finds the square root of x

A

sqrt(x)

21
Q

Finds xe, where e = 2.718281

A

exp(x)

22
Q

Returns the log of x where base is given. The default base is e

A

log(x[,base])

23
Q

Returns the log of x, where base is 2

A

log2(x)

24
Q

Returns the log of x, where base is 10

A

log10(x)

25
Q

are used to calculate different trigonometric operations:

A

Trigonometric and Angular Conversion Functions

26
Q

Return the sine of x in radians

A

sin(x)

27
Q

It returns the cosine of x in radians

A

cos(x)

28
Q

It returns the tangent of x in radians

A

tan(x)

29
Q

It returns the inverse of the sine, similarly we have acos, atan also

A

asin(x)

30
Q

It convert angle x from radian to degrees

A

degrees(x)

31
Q

It convert angle x from degrees to radian

A

radians(x)

32
Q

is a collection of text, numbers, or symbols. It is always enclosed with quotation marks

A

string

33
Q

You can put a backslash character followed by a quote (\” or |’) and Python will remove the backslash and put just the quote in the string.

A

escape sequence

34
Q

is combining two strings together by using the + symbol.

A

String concatenation

35
Q

takes the passed arguments, formats them , and places them in the string where the placeholders {}are:

A

format() method

36
Q

also known as string comparison can be performed using equality (==)and comparison (>, =, >=) operators.

A

matching strings