Feeds
已解决
Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.
10 years 前
已解决
Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*
10 years 前
已解决
sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.
11 years 前
已解决
Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...
11 years 前
已解决
Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...
11 years 前
已解决
Continued fractions
Find a <http://en.wikipedia.org/wiki/Continued_fraction continued fraction> approximation of x.
11 years 前
已解决
Looping a nested integral equation with multiple parapeters
I'm attempting to solve the function S, which is iteratively solved and looks like: S(z,omega) = e^(-z^2)*int_0^infinity of (...
11 years 前
已解决
Schwarzschild radius
Compute the <http://en.wikipedia.org/wiki/Schwarzschild_radius Schwarzschild radius> for objects of mass m (kg). Use c = 299,792...
11 years 前
已解决
Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...
11 years 前
已解决
Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...
11 years 前
已解决
CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5
11 years 前
已解决
Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).
11 years 前
已解决
Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...
11 years 前
已解决
Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...
11 years 前
已解决
Geometry: Find Circle given 3 Non-Colinear Points
*This Challenge is to determine the center and radius of a circle given three non-colinear points.* *Input:* Points *Outpu...
11 years 前
已解决
Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...
11 years 前
已解决
MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...
11 years 前
已解决
Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...
11 years 前
已解决
find a specific value in a matrix
Hi, I am using matlab for a thesis I have to write. the matrix consists of several option characteristicas such as closing pric...
11 years 前
已解决
Rescaling vector
Rescale the entries of a vector x so that it spams [a,b]. The new values should be linearly stretched into the new range. _Ex...
11 years 前