Risolto


Deduce Equations for Simplified Interstellar Doppler Effect ✨
R2-D2 and C-3PO are friends. R2-D2 boards a spacecraft bound to a galaxy far, far away, but is always in contact with C-3PO, als...

quasi 4 anni fa

Risolto


Negative without '-'
Simple: return a negative number without using the '-' sign. Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...

quasi 4 anni fa

Risolto


Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


Function substitution (2)
Evaluate the function for the given values of the variables N and t

quasi 4 anni fa

Risolto


Function substitution (1)
Evaluate the function for the given values of the variables N and t

quasi 4 anni fa

Risolto


Remainder
Use MATLAB help to find a suitable built-in function to find the remainder of dividing any non-negative integer, x, by 7. For in...

quasi 4 anni fa

Risolto


Nearest integer
Use MATLAB help to find a suitable built-in function to approximate a given number to the nearest integer. For instance, 9.25 is...

quasi 4 anni fa

Risolto


Absolute value
Use MATLAB help to find a suitable built-in function to find the absolute (positive) value of a given number. For instance |−5| ...

quasi 4 anni fa

Risolto


Travel time
Calculate the time (in hours) it takes a car traveling at a given uniform speed of s km/hour to travel a distance of d km. For i...

quasi 4 anni fa

Risolto


Circle area
Calculate the area of a circle given its radius, r. For instance, if r =3.5, the answer should be approximately 38.48

quasi 4 anni fa

Risolto


Average of five numbers
Find the average of a set of five numbers {x1,x2,x3,x4,x5}

quasi 4 anni fa

Risolto


Mathematical formula
Find the value of the expression given the values of variables t and k. Assume g=9.81

quasi 4 anni fa

Risolto


Average of two numbers
Find the average of two numbers x1 and x2. For instance, if x1=7 and x2=19, the answer is 13.

quasi 4 anni fa

Risolto


Convert a given Character to its decimal equivalent value
Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

quasi 4 anni fa

Risolto


Minimum number of children to distribute unequal cookie portions
A cruel parent wants to distribute N cookies such that it is impossible for every child to receive the same number of cookies. W...

quasi 4 anni fa

Risolto


Ridge regularized linear regression
Given a predictor data matrix of size , target variable vector of size and a shrinkage factor (scalar) (ridge regularization...

quasi 4 anni fa

Risolto


Monty Python and the Holy Grail: Crossing the Bridge of Death
To cross the Bridge of Death, your function must return the numerical value for the airspeed velocity of an unladen swallow

quasi 4 anni fa

Risolto


Vector slither sort!
Sort a numeric vector in the following format: [largest value, smallest value, second largest value, second smallest value, etc...

quasi 4 anni fa

Risolto


Fair Scoring for Cody
The length-based scoring system for Cody has a few well-known loopholes that allow clever programmers to hide complex code insid...

quasi 4 anni fa

Risolto


Concatenated Consecutive Prime

quasi 4 anni fa

Risolto


Parametric Array
Create a row vector, 1xN (Integer, >1), such that the mean of the vector is M (Real number) and the standard deviation of the ...

quasi 4 anni fa

Risolto


Palindromic Primes
A Palindromic Prime is a prime number that is also a palindromic number. (Wiki, OEIS) If given a monotonic series (increment...

quasi 4 anni fa

Risolto


Hoax Numbers
A Hoax Number (OEIS A019506) is defined as a composite number, whose sum of digits is equal to the sum of digits of its distinct...

quasi 4 anni fa

Risolto


Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...

quasi 4 anni fa

Risolto


Resistance of a light bulb
The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....

quasi 4 anni fa

Risolto


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

quasi 4 anni fa

Risolto


Determine whether a number is unprimeable
The number 204 is unprimeable because no single digit can be changed to make it prime. In contrast, the number 207 is not unprim...

quasi 4 anni fa

Risolto


Find the remainder with the factorial of PRIMES?
* Take a number greater than or equal to 2 and take its primes. e.g. 6 and its primes are 2 3 5 * calculate the factorial of i...

quasi 4 anni fa

Risolto


Count the primes in Collatz sequences
Several Cody problems (21, 69, 42937, 44448, 44784, 52422) involve Collatz sequences. These start with a seed . If is odd, the ...

quasi 4 anni fa

Carica altro