Compound interest - number e
A moneylender wants to receive his annual interest of 12% more frequently.
If he receives his interest rate every six months,...
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...
Solve t^(a*x^2+b*x+c)=s
Solve t^(a*x^2+b*x+c)=s. Return x vector as result.
Example a=1, b=2, c=1, t=3, s=15. Result x(1)= 0.5700 x(2)=-2.5700
H...
2年以上 前
解決済み
Basic Quadratic Equation
Create the equation:
y=(3x)^2+(5x)+35
and compute y for various values of x
2年以上 前
解決済み
Finding sum of even numbers in a vector.
Find the sum of all the even numbers present in the input vector x.
Examples:
Input x = [1 2 3 4]
Output y is 6
Input...
2年以上 前
解決済み
A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...
basic finance application
i watch bloomberg everyday and i want to estimate a stock price stability, so i have to calculate the momentum & the rate of cha...
2年以上 前
解決済み
Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square.
...
2年以上 前
解決済み
Test of Quiz
Answer the questions and write in vector. Only one answer is correct.
The founder of fuzzy logic is
1a) D. Golberg
1b)...
Ohm's Law
Well its Ohm's law...
So V = IR!
I will give two of the three values, such as V and I or I and R and you have to return th...
2年以上 前
解決済み
Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...
Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...
2年以上 前
解決済み
Simple return on investment
Assume you have some money and want to invest all your money to stock market. You randomly select a stock and invest all your mo...
Finding an element in a vector
x is a vector of unknown length
your function should return the index of the first element in the vector that is greater than...