Gelöst


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

fast 10 Jahre vor

Gelöst


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

fast 10 Jahre vor

Gelöst


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

fast 10 Jahre vor

Gelöst


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

fast 10 Jahre vor

Gelöst


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

fast 10 Jahre vor

Gelöst


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

fast 10 Jahre vor

Gelöst


Roots of a quadratic equation.
Determine the roots of a quadratic equation., if coefficients a,b and c are given.

fast 10 Jahre vor

Problem


Roots of a quadratic equation.
Determine the roots of a quadratic equation., if coefficients a,b and c are given.

fast 10 Jahre vor | 5 | 74 Lösungsvorschläge

Problem


Determine the roots of a cubic equation
Given the coefficients a,b,c,d of a cubic equation. Determine the roots of the cubic equation.

fast 10 Jahre vor | 3 | 55 Lösungsvorschläge

Gelöst


Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

fast 10 Jahre vor

Gelöst


Values in Array
How many values are in the array

fast 10 Jahre vor

Gelöst


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

fast 10 Jahre vor

Gelöst


Find the sum of n squares
What is the sum of the squares of the first n integers?

fast 10 Jahre vor

Gelöst


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

fast 10 Jahre vor

Gelöst


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

fast 10 Jahre vor

Gelöst


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

fast 10 Jahre vor

Gelöst


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

fast 10 Jahre vor

Gelöst


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

fast 10 Jahre vor

Gelöst


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

fast 10 Jahre vor

Gelöst


Square root of a number
Write a code that will output the square root of x.

fast 10 Jahre vor

Gelöst


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

fast 10 Jahre vor

Gelöst


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

fast 10 Jahre vor

Gelöst


Log of a number
Write a script that will give the log of x as output.

fast 10 Jahre vor

Gelöst


Find the qube of a give number.
You are given a number, find the qube of that number.

fast 10 Jahre vor

Gelöst


modulus of a number
find the modulus of a given number

fast 10 Jahre vor

Gelöst


find max
You are given an array number find the maximum

fast 10 Jahre vor

Gelöst


find minimum
find the minimum from an array

fast 10 Jahre vor

Gelöst


find sum of the numbers in array
calculate the sum of numbers in a given array

fast 10 Jahre vor

Gelöst


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

fast 10 Jahre vor

Mehr laden