A résolu


Create tangent function out of cosine only
Please don't use tangent and sine functions

plus de 5 ans il y a

A résolu


Create a code for XNOR
Given two inputs, output XNOR of those two

plus de 5 ans il y a

A résolu


Create tangent function out of sine function only
Please don't use cosine and tangent functions

plus de 5 ans il y a

A résolu


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

plus de 5 ans il y a

A résolu


Convert degrees to radians
Given input in degrees, output to radians

plus de 5 ans il y a

A résolu


Create tangent function out of sin and cos
Please don't use tan(x) directly

plus de 5 ans il y a

A résolu


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

plus de 5 ans il y a

A résolu


Create sine function out of cosine
Please don't use sin(x) directly

plus de 5 ans il y a

A résolu


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

plus de 5 ans il y a

A résolu


Center of mass
Given a matrix M(m,n), where m is the number of vertices of the geometrical element and n is 2 or 3 (2D-plane figure or 3D-solid...

plus de 5 ans il y a

A résolu


frame of the matrix
Given the matrix M, return M without the external frame.

plus de 5 ans il y a

A résolu


Distance walked 2D
Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

plus de 5 ans il y a

A résolu


Calculate Euler's phi function
Compute the Euler's phi function of a large integer. For more information about this topic please visit: <https://en.wikiped...

plus de 5 ans il y a

A résolu


Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

plus de 5 ans il y a

A résolu


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

plus de 5 ans il y a

A résolu


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

plus de 5 ans il y a

A résolu


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

plus de 5 ans il y a

A résolu


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

plus de 5 ans il y a

A résolu


Rosenbrock's Banana Function and its derivatives
Write a function to return the value of <http://en.wikipedia.org/wiki/Rosenbrock_function Rosenbrock's two-dimensional banana fu...

plus de 5 ans il y a

A résolu


wait for me
wait exactly x seconds please, need not be more than 2 seconds but must be accurate within say 50 milliseconds, your function mu...

plus de 5 ans il y a

A résolu


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

plus de 5 ans il y a

A résolu


Find 10's complement
Find 10's complement of a given number. An example is <http://electrical4u.com/9s-complement-and-10s-complement/ shown here>.

plus de 5 ans il y a

A résolu


Add two hex numbers
Add two hex numbers

plus de 5 ans il y a

A résolu


Find out characteristics equation of given matrix.
Find out characteristics equation of given matrix. A=[0 2; 1 8] then char. eq is s^2-8*s-2=0 and answer should be [1 -8 -2] ...

plus de 5 ans il y a

A résolu


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

plus de 5 ans il y a

A résolu


Find Out sum of principal diagonal element of given matrix
Find out sum of principal diagonal element of given matrix If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.

plus de 5 ans il y a

A résolu


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

plus de 5 ans il y a

A résolu


Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

plus de 5 ans il y a

A résolu


find out eigenvector of matrix
find out eigenvector of matrix A =eye(3); Answer is [0 0 1; 0 1 0; 1 0 0];

plus de 5 ans il y a

A résolu


Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

plus de 5 ans il y a

Charger plus