Find the complement of a number in binary
Input x is a decimal number and output y is the complement of binary representation of x.
For example, x = 10 has the binary ...
4年以上 前
解決済み
Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n.
Example
x= [ 1 2 3...
Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1.
Example:
A = [1 2 3 -1 0 2 -3 -80];
...
4年以上 前
解決済み
Determine given vector is even or odd
Find the numbers of the input vector is odd or even then replace even with 1 and odd with 0
Example
x = [ 3 3 4 6 1]
...
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...
4年以上 前
解決済み
Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.
4年以上 前
解決済み
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 ...