Solved


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

7 months ago

Solved


Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

7 months ago

Solved


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

7 months ago

Solved


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

7 months ago

Solved


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

7 months ago

Solved


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

7 months ago

Solved


Frobenius Norm
Write your own version of Frobenius Norm without using the 'norm' function.

7 months ago

Solved


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

7 months ago

Solved


Free-time Equation
Given a 7-day week, an *_nc_* -number of *_tc_* -hour classes, *_ta_* -hours awake in a day, and *_tw_* -hours that you work in ...

7 months ago

Solved


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

7 months ago

Solved


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

7 months ago

Solved


radius of a spherical planet
You just measured its surface area, that is the input.

7 months ago

Solved


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

7 months ago

Solved


Temperature Conversion 3

7 months ago

Solved


Center of mass
Given a matrix M(m,n), where m is the number of vertices of the geometrical element and n is 2 or 3 (2D-plane figure or 3D-solid...

8 months ago

Solved


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

8 months ago

Solved


length of a vector
Find twice the length of a given vector.

8 months ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

8 months ago

Solved


Create cosine function out of sine
Please dont use cos(x) directly

8 months ago

Solved


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

8 months ago

Solved


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

8 months ago

Solved


Watt
Ampere x Volt = Watt

8 months ago

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

8 months ago

Solved


Radiation Heat Transfer — View Factors (2)
View factors (aka configuration factors) are utilized in some radiation heat transfer models to estimate heat transfer rates bet...

8 months ago

Solved


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

8 months ago

Solved


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

8 months ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

8 months ago

Solved


delta x

8 months ago

Solved


Row sum

8 months ago

Solved


Factorial

8 months ago

Load more