Trusted answers to developer questions

Joy Kareko

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

`Scipy`

is a Python library that contains different mathematical modules for technical computations. The `linalg`

library contains functions that are useful for algebraic computations.

In this shot, we will cover how to use `scipy.linalg.sinhm()`

to compute the hyperbolic sine of a matrix.

```
scipy.linalg.sinhm(A)
```

`A`

: This parameter is a matrix.

This function returns another matrix `B`

that is the hyperbolic sine of the matrix `A`

.

import numpy as npimport scipyfrom scipy.linalg import sinhma = np.matrix([[0.0789,0.6754],[0.4521,0.3679]])print(a)s = sinhm(a)print('--------------------------')print(s)

Finding the hyperbolic sine of a matrix

- Lines 1–3: We import the neccessary modules.
- Line 5: We generate a 2 by 2 matrix using Numpy.
- Line 9: We use the
`scipy.linalg.sinhm()`

function to generate the hyperbolic sine of the matrix. - Lines 7 and 13: We print the outputs.

RELATED TAGS

scipy

linear algebra

python

communitycreator

CONTRIBUTOR

Joy Kareko

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring

Related Courses