Menu

T Seem Figure Correct Commands M Using Jupyter Notebook Vector Numbers 1 2 3 4 5 Square Q43855302

I can’t seem to figure out the correct commands for this (I’musing jupyter notebook)

You have a vector of numbers A = [1 2 3 4 5].

i. How can you square each element of this vector? In otherwords, create a vector B that is [1^2 2^2 3^2 4^2 5^2 ].

ii. Now create a variable C that represents the third value in B(your variable should specifically refer to “the third index of thevector B”, rather than you inputting its numerical value).

Expert Answer


Answer to I can’t seem to figure out the correct commands for this (I’m using jupyter notebook) You have a vector of numbers A = […

OR