A résolu


Calculate the Compression of a Spring
A mechanical engineer wants to determine how much a spring will compress when a force is applied to it. According to Hooke’s Law...

environ 2 mois il y a

A résolu


Twins in a Window
<http://en.wikipedia.org/wiki/Twin_primes Twin primes> are prime numbers that differ by 2, such as [11,13] or [41,43]. Write a f...

environ 2 mois il y a

A résolu


Twin Primes
Twin primes are pairs of primes that are immediately next to each other (difference of two). The lesser of twin primes are 3, 5,...

environ 2 mois il y a

A résolu


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

environ 2 mois il y a

A résolu


Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

environ 2 mois il y a

A résolu


Covering a four-pointed star polygon by rectangles
Given the area, A, of a star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h from their...

environ 2 mois il y a

A résolu


Covering a four-pointed star polygon by circles
Given the area, A, of a star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h from their...

environ 2 mois il y a

A résolu


Slicing a 4-pointed star polygon
Given the area, A, of a 4-pointed star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h ...

environ 2 mois il y a

A résolu


Covering a 4-pointed star polygon by a circle sector
Given the area, A, of a 4-pointed star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h ...

environ 2 mois il y a

A résolu


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

environ 2 mois il y a

A résolu


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

environ 2 mois il y a

A résolu


Square a Number
Given an input x, return y, which is equal to the square of x.

environ 2 mois il y a

A résolu


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

environ 2 mois il y a

A résolu


Remove the Zero
Given an array n, remove all zeros

environ 2 mois il y a

A résolu


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

environ 2 mois il y a

A résolu


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

environ 2 mois il y a

A résolu


Prime or No
If the number is prime, make theCase = "YES", else, make it "NO".

environ 2 mois il y a

A résolu


Get The Square Root Of Number Power (^) Three
Get the Square Root of number Power (^) Three.

environ 2 mois il y a

A résolu


Basic Algebra III
Get the Cube Root of the number n.

environ 2 mois il y a

A résolu


Find The Area Of The Circle
Find the area of the Circle using PI.

environ 2 mois il y a

A résolu


Circle Perimeter
Get the perimeter of the Circle by PI.

environ 2 mois il y a

A résolu


Basic Algebra II
You have the equation X^2 = n you should find the value of X. GOOD LUCK!

environ 2 mois il y a

A résolu


Basic Physics IV
Calculate the Mechanical Energy (ME).

environ 2 mois il y a

A résolu


Get The Opposite Of The Number Without Negative (-) On It
You must get the opposite of the number X without making -X. Hint: You can make it by Subtraction and Multiplication.

environ 2 mois il y a

A résolu


Multiply the Diagonals of Two Vectors
Find the diagonals of vectors a and b and multiply them.

environ 2 mois il y a

A résolu


Title
Make a plot for x and add title "My Plot". NOTICE: YOU CAN NOT USE ans INSTEAD OF [y ax]!

environ 2 mois il y a

A résolu


Scalar
The First problem in Linear Algebra group. Make scalar contains the value:

environ 2 mois il y a

A résolu


Plot
Make a plot of the vector x. NOTICE: YOU CAN NOT USE ans INSTEAD OF y!

environ 2 mois il y a

A résolu


Matrix
The fourth problem in Linear Algebra group. Create a matrix like this: 14 7 26 7 8 6 3 0 30

environ 2 mois il y a

A résolu


Column Vector
The third problem in Linear Algebra group. Create a column vector like this:

environ 2 mois il y a

Charger plus