Gelöst


find the hypotenuse.
sideA=linspace(1,10,10) sideB=linspace(1,10,10) sideC=

etwa 11 Jahre vor

Gelöst


square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared y = x; end

etwa 11 Jahre vor

Gelöst


the function, the box of boxer briefs, being twice the amount being manufactured twice as much x
return y as the function multiplied by x twice

etwa 11 Jahre vor

Gelöst


Get a Fibonacci number's index.
*N.B.* For the purpose of this exercise, the first Fibonacci number is 1, and the second is 2; that is, |fib(1) = 1| and |fib(2)...

etwa 11 Jahre vor

Gelöst


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

etwa 11 Jahre vor

Gelöst


times 5
Given the variable x as your input, multiply it by five and put the result in y.

etwa 11 Jahre vor

Gelöst


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

etwa 11 Jahre vor

Gelöst


Find all of the odd integers in a vector between the intergers 1 and 10.
Given vector of integers 1:10 [1 2 3 4 5 6 7 8 9 10]

etwa 11 Jahre vor

Gelöst


How to make y half of x
Making y equal to x/2.

etwa 11 Jahre vor

Gelöst


My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

etwa 11 Jahre vor

Gelöst


square root
Find the square root (y) of an input (x).

etwa 11 Jahre vor

Gelöst


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

etwa 11 Jahre vor

Gelöst


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

etwa 11 Jahre vor

Gelöst


Multiplying Vectors 101
Make a vector from 1 to x then multiply the sum of that vector by 2.

etwa 11 Jahre vor

Gelöst


Find out output of following expression
Find out output of following expression Q=2log10 x+cos π+√(5yz)+|x^2-y^2 |

etwa 11 Jahre vor

Gelöst


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

etwa 11 Jahre vor

Gelöst


Find out magnitude of vector
Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

etwa 11 Jahre vor

Gelöst


Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

etwa 11 Jahre vor

Gelöst


Cumulative product of a vector
Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

etwa 11 Jahre vor

Gelöst


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

etwa 11 Jahre vor

Gelöst


prime test 2
enter the only non prime,non composite number

etwa 11 Jahre vor

Gelöst


prime test
find largest 2 digit prime number

etwa 11 Jahre vor

Gelöst


square number
Square a number

etwa 11 Jahre vor

Gelöst


What's for Lunch?
Given b choices of beverages, e choices of entrees, s choices of sides (take two different sides total) and d choices of dessert...

etwa 11 Jahre vor

Gelöst


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

etwa 11 Jahre vor

Gelöst


Product of Array
Given an array of numbers. Get the product of the array.

etwa 11 Jahre vor

Gelöst


Decide whether determinant is zero.
Given a 3 x 3 matrix, find the determinant. Let y = true if the determinant is zero, and let y = false if the determinant is no...

etwa 11 Jahre vor

Gelöst


Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

etwa 11 Jahre vor

Gelöst


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

etwa 11 Jahre vor

Gelöst


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

etwa 11 Jahre vor

Mehr laden