Solved


Determine Poker Hand Winner
Determine the poker hand winner from two hands of cards (each hand will contain the same number of cards between five and thirte...

4 years ago

Solved


Calculate the probability that at least two people in a group share the same birthday.
Calculate the probability that at least two people in a group share the same birthday. Given an integer input n, return to 0.015...

4 years ago

Solved


Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

4 years ago

Solved


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

4 years ago

Solved


Rankine to Celsius Converter
Given input R, degrees Rankine, convert into degrees Celsius.

4 years ago

Solved


Hydrostatic Pressure
Given depth(height), in m, find the pressure under a body of water. Need to know the density of water(kg/m^3), and gravity(m/s^2...

4 years ago

Solved


Joules to Megatons of TnT
Given joules, J, make a function that converts to megatons of TNT.

4 years ago

Solved


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

4 years ago

Solved


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

4 years ago

Solved


Degrees to Radian
Convert degrees to radians

4 years ago

Solved


Radians to Degrees
Convert radians to degrees.

4 years ago

Solved


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

4 years ago

Solved


Forward Substitution
Solve a lower triangular linear set of equations as described in the following link: http://www.people.virginia.edu/~teh1m/cody/...

4 years ago

Solved


Backward Substitution
Solve a upper triangular linear set of equations as described in the following link: http://www.people.virginia.edu/~teh1m/cody/...

4 years ago

Solved


Find Current in R circuit.
Find the current in an R circuit for a given input of Voltage (V) and Resistance(R).

4 years ago

Solved


Finding Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false

4 years ago

Solved


Find Current in R circuit.
Two input parameters are voltage (V) and resistance (R) are given in vector x = [V R]. Find the current flowing in the R circui...

4 years ago

Solved


Calculate the volume of the sphere
Given the radius r . Find the volume of the sphere , round to 3 digits after the comma EX: Input : x = 4 output : V = ...

4 years ago

Solved


Draw "T" inside a Zero Matrix
Given a x-by-x matrix filled with zeros (x> 2). Use 1 to draw a letter "T" into it! Like this: x = 5, y = 1 1 1 1 1 0 0 1 0 0...

4 years ago

Solved


Draw "C" in a zero matrix
Given a x-by-x matrix filled with zeros (x> 4). Use 1 to draw a letter C into it! Like this: x = 5, y = 1 1 1 1 1 1 0 0 0 0 ...

4 years ago

Answered
Help with bisection method
function bisect= Bisect(f,xl, xu, es, imax)%recommend imputting the function it=0; ea=1; xr = (xl + xu) / 2; while ea>es && ...

4 years ago | 1

Answered
How to create a circle when its center is located (15, 4.5) and its radius is 5?
x=15;y=4.5;r=5; rectangle('Position',[x-r y-r 2*r 2*r],'Curvature',[1,1]);

4 years ago | 0

Answered
How can I fix this error kindly help me out as I am a beginner
You have a bunch of stuff that is meaningless and not correct syntax. Z0=linspace(50,50,45); Z1=linspace(pi/2,45,45); theta =...

4 years ago | 0

Solved


Lowest sum from a group of digits
Hi there. It's James's daughter here again, and my third grade math teacher is up to her old tricks. This time, she's giving u...

4 years ago

Solved


"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

4 years ago

Solved


What digit is it?
The function you are being asked to write will take three numbers (n,x,q) as input. The object of the function is to determine ...

4 years ago

Solved


Rolling maximums above a threshold
You are given either a vector or a 2-D matrix M and a threshold value of t. Write a script that will calculate how many times t...

4 years ago

Solved


Negation the hard way
Write a function that has the following property: f(f(x)) = -x for any numeric array x. Note that there is no restriction on ...

4 years ago

Answered
I'm trying to plot to function but keep getting an error saying "Vectors must be the same length." how do I fix this
Not sure what you are trying to do. There is no t in your questions, only a single variable w. Why the for-loops? [w,t]=meshgri...

4 years ago | 0

Solved


Compute average gain for some bets.
Given a vector containg the odds of some events in decimal format (e.g., |odds=[1.3 2.5 1.5]| ) and a vector of the same dimensi...

4 years ago

Load more