A résolu


Special Relativity 101.
Special relativity states that the effective mass of an object varies as a function of its velocity. If *c* is the speed of ligh...

environ 2 mois il y a

A résolu


size

environ 2 mois il y a

A résolu


Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values. ...

environ 2 mois il y a

A résolu


Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

environ 2 mois il y a

A résolu


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

environ 2 mois il y a

A résolu


Determine the square root
Determine the square root of the value the user has entered, n.

environ 2 mois il y a

A résolu


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

environ 2 mois il y a

A résolu


cube of number
find cube of number

environ 2 mois il y a

A résolu


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

environ 2 mois il y a

A résolu


Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

environ 2 mois il y a

A résolu


Find the "ordinary" or Euclidean distance between A and Z
A, B and Z define three points in the 3D _Euclidean_ space of the form: A = [x1;y1;0]; B = [x2;y2;0]; Z = [x2;y2;z]; Find th...

environ 2 mois il y a

A résolu


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

environ 2 mois il y a

A résolu


Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

environ 2 mois il y a

A résolu


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

environ 2 mois il y a

A résolu


Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

environ 2 mois il y a

A résolu


Popular Word Game™ Distance
Professor Ned, who holds the Nedowed Chair of Crackpot Mathematics at the University of Nedsburg, has recently discovered the da...

environ 2 mois il y a

A résolu


A Nedlish Country Garden - Check for Valid Arrangement
Nedland is famous for its stately gardens, which typically have a centerpiece of a square grid, with certain squares featuring a...

environ 2 mois il y a

A résolu


Average Number of Moves for the Royal Game of Err
Bored of tedious court assemblies, King Neduchadneddar the Procrastinator has found a cunning way to keep his advisors, councilo...

environ 2 mois il y a

A résolu


Transition Matrix for the Royal Game of Err
Bored of tedious court assemblies, King Neduchadneddar the Procrastinator has found a cunning way to keep his advisors, councilo...

environ 2 mois il y a

A résolu


Leaderboard for the Nedball World Cup
At the upcoming inaugural Nedball World Cup, organizers need to track who is in the lead for the coveted Golden Toeplitz trophy,...

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...

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...

2 mois il y a

A résolu


Generalizing square area to triangle area
Cody Problem 61070 asked for the height, h, of a right triangle that had the same area, A, of a square with side length, c, and ...

2 mois il y a

A résolu


Square area to triangle area
Given the area, A, of a square with side length, c, if a right angle triangle has the same area A and the hypothenuse length 2c ...

2 mois il y a

A résolu


Create 24-bit image containing all possible colors
A 24-bit image is an image where each pixel is represented by three values, which are the red, green, and blue color components,...

2 mois il y a

A résolu


Convert Hexavigesimal to Decimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

2 mois il y a

A résolu


Enclosure Matrix
The problem gives you a positive integer n. You need to create a matrix consisting of n layers of natural numbers; the outermost...

2 mois il y a

A résolu


Count the Even Digits in a Number
Given a positive integer n, write a function that returns how many digits of n are even. Even digits are: 0, 2, 4, 6, 8

2 mois il y a

A résolu


Convert Decimal to Hexavigesimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

2 mois il y a

A résolu


How tall will my cactus be?
My Barbed Wire Cactus is a desert cactus that relies on just the right amount of rainfall to stay healthy. Given a 1×12 vector...

2 mois il y a

Charger plus