Community Profile

Anna Hart

MathWorks

15 total contributions since 2021

View details...

Contributions in
View by

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

alrededor de 1 mes ago

Solved

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

alrededor de 1 mes ago

Solved

De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

alrededor de 1 mes ago

Solved

apply zero padding to a matrix

alrededor de 1 mes ago

Solved

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

alrededor de 1 mes ago

Solved

Given input in radians, output to degrees

alrededor de 1 mes ago

Solved

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

alrededor de 1 mes ago

Solved

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.

alrededor de 1 mes 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...

alrededor de 1 mes ago

Solved

You just measured its surface area, that is the input.

alrededor de 1 mes ago

Solved

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

alrededor de 1 mes ago

Solved

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

alrededor de 1 mes ago

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

alrededor de 1 mes ago

Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

alrededor de 1 mes ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

alrededor de 1 mes ago