Community Profile

Justin Illingworth

Last seen: 12 mois ago
245 total contributions since 2019

View details...

Contributions in
View by

Solved

Calculate compression ratio of engine
Calculate compression ratio of engine given compression volume of cylinder(Vc), piston stroke(s) and valve diameter(d)

12 mois ago

Solved

Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

12 mois ago

Solved

Calculate Alcohol By Volume with Original and Final Gravity
Given an initial gravity of un-fermented wort (OG) and a final gravity of fermented wort (FG), better known as beer, it is possi...

12 mois ago

Solved

Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

12 mois ago

Solved

Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

environ un an ago

Solved

Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

environ un an ago

Solved

Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

environ un an ago

Solved

Square
square root of x

environ un an ago

Solved

Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

environ un an ago

Solved

Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

environ un an ago

Solved

Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

environ un an ago

Solved

Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

environ un an ago

Solved

Area of a disk
Find the area of a disk or circle. x= radius of the disk.

environ un an ago

Solved

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

environ un an ago

Solved

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

environ un an ago

Solved

Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

environ un an ago

Solved

Type your favourite city.

environ un an ago

Solved

Counting down
Create a vector that counts from 450 to 200 in increments of 10.

environ un an ago

Solved

square number
Square a number

environ un an ago

Solved

Find Index of maximum Value and maximum Value of a vector
Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector. Example: [...

environ un an ago

Solved

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

environ un an ago

Solved

Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

environ un an ago

Solved

Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

environ un an ago

Solved

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

environ un an ago

Solved

Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

environ un an ago

Solved

Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

environ un an ago

Solved

Calculate the area of a circle
Given a circle of diameter x calculate its area

environ un an ago

Solved

Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

environ un an ago

Solved

Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

environ un an ago

Solved

Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

environ un an ago