Community Profile

# Justin Illingworth

##### Last seen: 7日 前
245 2019 年以降の合計貢献数

#### Justin Illingworth's バッジ

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

8日 前

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

9日 前

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

9日 前

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

9日 前

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

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

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

3ヶ月 前

Square
square root of x

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

3ヶ月 前

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

3ヶ月 前

square number
Square a number

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前

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

3ヶ月 前