Community Profile

# John Hutchins

##### Last seen: Today
202 2018 이후 총 참여 횟수

#### John Hutchins's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

26일 전

해결됨

Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

약 1달 전

해결됨

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

약 1달 전

해결됨

Log of a number
Write a script that will give the log of x as output.

약 1달 전

해결됨

Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets \$x per hour and a yearly bonus of \$2000? (Let, 50 wee...

약 1달 전

해결됨

Square root of a number
Write a code that will output the square root of x.

약 1달 전

해결됨

Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

약 1달 전

해결됨

Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

약 1달 전

해결됨

Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

약 1달 전

해결됨

Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

약 1달 전

해결됨

How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

약 1달 전

해결됨

Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

약 1달 전

해결됨

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

약 1달 전

해결됨

Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

약 1달 전

해결됨

Multiply 2 numbers
Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

약 1달 전

해결됨

Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

약 1달 전

해결됨

Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

약 1달 전

해결됨

Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

약 1달 전

해결됨

Given input in radians, output to degrees

약 1달 전

해결됨

Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

약 1달 전

해결됨

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

약 1달 전

해결됨

Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

약 1달 전

해결됨

Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

약 1달 전

해결됨

Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

약 1달 전

해결됨

Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

약 1달 전

해결됨

Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

약 1달 전

해결됨

Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

약 1달 전

해결됨

Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

약 1달 전

해결됨

Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

약 1달 전