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

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

20
Q

Finds the square root of x

21
Q

Finds xe, where e = 2.718281

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

24
Q

Returns the log of x, where base is 10

25
are used to calculate different trigonometric operations:
Trigonometric and Angular Conversion Functions
26
Return the sine of x in radians
sin(x)
27
It returns the cosine of x in radians
cos(x)
28
It returns the tangent of x in radians
tan(x)
29
It returns the inverse of the sine, similarly we have acos, atan also
asin(x)
30
It convert angle x from radian to degrees
degrees(x)
31
It convert angle x from degrees to radian
radians(x)
32
is a collection of text, numbers, or symbols. It is always enclosed with quotation marks
string
33
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.
escape sequence
34
is combining two strings together by using the + symbol.
String concatenation
35
takes the passed arguments, formats them , and places them in the string where the placeholders {}are:
format() method
36
also known as string comparison can be performed using equality (==)and comparison (>, =, >=) operators.
matching strings