A résolu


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

presque 6 ans il y a

A résolu


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

presque 6 ans il y a

A résolu


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

presque 6 ans il y a

A résolu


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

presque 6 ans il y a

Réponse apportée
calling exponential function to non linear square
In your function you can't raise a matrix to a power. The only thing that is possible is to raise the power of each element in t...

presque 6 ans il y a | 1

| A accepté

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

presque 6 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

presque 6 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

presque 6 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

presque 6 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

presque 6 ans il y a

Réponse apportée
Solve function (and other code help)
syms Z hi = [0 , 11 , 20, 32 , 47, 51 , 71 , 84.852 , 90 ]; Re = 6356.766; for i=1:length(hi) A(i) = solve((Re*Z)/(R...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
diffrence between rem and mod
When mod(4,-10) is used, it works as -10*1=-10 and the remainder becomes 4-10=-6 But when rem(4,-10) is used, it works as -10*0...

presque 6 ans il y a | 0

A résolu


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

presque 6 ans il y a

A résolu


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

presque 6 ans il y a