Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...
Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3,
output = [4 4 4]
Hint:
Search for the function...
9年弱 前
解決済み
Log of a number
Write a script that will give the log of x as output.
9年弱 前
解決済み
Calculate solution of given polynomial
For example,
y=function([3 -2 -4])
In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation.
y=[1.5...
9年弱 前
解決済み
Print true if
all elements are larger than 5
a=[1 3 5 8 6];
b=[6 6 6 6 6];
function(a) should be false, and function(b) will be tru...
Find x in provided equation!
x^2-2*x+1=0
This polynomial can be expressed by using each term's coefficients, such as
[1 -2 1].
Using the polynomial ...
9年弱 前
解決済み
Make roundn function
Make roundn function using round.
x=0.55555
y=function(x,1)
y=1
y=function(x,2)
y=0.6
y=function(x,3)
...