Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.
9年以上 前
解決済み
Solve expression II
Solve given expression.
alpha=0.1(-x-y-50)/(exp((-x-y-50)/10)-1)
beta=5exp((-x+y-60)/20)
result=alpha+beta;
9年以上 前
解決済み
Solve expression III
Solve expression for given vector x.
Expression = (tan(2*x^2+7*x-30.25)+log(x^3-2.25))/(nthroot(sin(x^3)^2+1/5*log(x^4-2.5),3))...
Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.
9年以上 前
解決済み
Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values.
...
Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...
9年以上 前
解決済み
Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid
Example
Input:
x = [0 0 1]; % x-coordinate
y = [0 1 0]; % y-coordinat...
Flipping a Matrix
Flipping matrix up and down.
If a central row is exists, leave it, and flip remaining rows.
Example
Mat = magic(3)
...
9年以上 前
解決済み
Replicate and Tile an Array
Replicate and tile an array.
Example
A = [1 2 3; 4 5 6; 7 8 9]
B = Epli_and_Tile(A,1,2)
B = [ 1 2 3 1...
9年以上 前
解決済み
Where is the number that you want to find?
For a given matrix A, find where the input number x appears.
Do this task by returning the vector which contains the row and th...
'Price of pizza!'
If you want to check pizza's price, try this!
price is proportional to its volume, so
you have to multiply 0.1($) to pizza's v...
9年以上 前
解決済み
0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as
f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...
9年以上 前
解決済み
Joules!
1J = 101.325 L/atm
Write a statement that assigns fractionalMultiplier with 101.325
Write a second statement that assigns Jo...