An open API service indexing awesome lists of open source software.

https://github.com/mugbug/numpy-review


https://github.com/mugbug/numpy-review

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Solução EPC0

## Questão 1

a) `x = [-1.3, 1.73205081, 4.8]`\
b) `x = [-1.3, 1.73205081, 4.8, 1.73205081]`\
c) `y = [[1, 2, 3, 4]]`\
d) i. `x + y = [[-0.3, 3.73205081, 7.8, 5.73205081]]`\
ii. `x - y = [[-2.3 -0.26794919 1.8 -2.26794919]]`\
iii. `y’ = [[1], [2], [3], [4]]`\
iv. `x * y = [[-1.3, 3.46410162, 14.4, 6.92820323]]`\
v.

x * y’ = [[-1.3, 1.73205081, 4.8, 1.73205081],
[-2.6, 3.46410162, 9.6, 3.46410162],
[-3.9, 5.19615242, 14.4, 5.19615242],
[-5.2, 6.92820323, 19.2, 6.92820323]]


vi. `x .* y = 23.49230484541326`\
vii. `x ./ y = [[-1.3, 0.8660254, 1.6, 0.4330127]]`\
viii. `x .^ y = [[-1.3, 3.0, 110.592, 9.0]]`\
ix. `z = [x y] = [-1.3, 1.73205081, 4.8, 1.73205081, 1.0, 2.0, 3.0, 4.0]`

## Questão 2

a) `[0, 2, 4, 6, 8]`\
b) `[1, 2, 3, 4]`\
c) `(4, 4)`\
d) `v2 = [0, 2, 4, 6, 8, 10]`

## Questão 3

![Questão 3](https://github.com/mugbug/numpy-review/blob/master/charts/3.png)

## Questão 4

![Questão 4](https://github.com/mugbug/numpy-review/blob/master/charts/4.png)

## Questão 5

![Questão 5](https://github.com/mugbug/numpy-review/blob/master/charts/5.png)

## Questão 6*

![Questão 6](https://github.com/mugbug/numpy-review/blob/master/charts/6.png)

> *foi utilizado size = 1000 para que o gráfico tenha o comportamento esperado