Resuelto


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

más de 4 años hace

Resuelto


What is the distance from point P(x,y) to the line Ax + By + C = 0?
Given a point, P(x,y), find the distance from this point to a linear line. INPUTS: x, y, A, B, C OUTPUTS: d, the distance ...

más de 4 años hace

Resuelto


Are you in or are you out?
Given vertices specified by the vectors xv and yv, and a single point specified by the numbers X and Y, return "true" if the poi...

más de 4 años hace

Resuelto


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

más de 4 años hace

Resuelto


create a function that cubes a number
example: x = 3 y = 27

más de 4 años hace

Resuelto


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

más de 4 años hace

Resuelto


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

más de 4 años hace

Resuelto


Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

más de 4 años hace

Resuelto


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

más de 4 años hace

Resuelto


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

más de 4 años hace

Resuelto


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

más de 4 años hace

Resuelto


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. ...

más de 4 años hace

Resuelto


Average valid values of arrays
Given a 1D array (column or row vector), compute the average of valid values. Valid values are defined via two thresholds: minVa...

más de 4 años hace

Resuelto


Conversion from hours to mili sec
Convert given input in hours to mili seconds

más de 4 años hace

Resuelto


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

más de 4 años hace

Resuelto


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

más de 4 años hace

Resuelto


Covering area
As an extension of the problem <http://www.mathworks.com/matlabcentral/cody/problems/416-polygon-area>, find the area, bounded b...

más de 4 años hace

Resuelto


Angle between Two Vectors
The dot product relationship, a dot b = | a | | b | cos(theta), can be used to determine the acute angle between vector a and ve...

más de 4 años hace

Resuelto


square of a number
find square of a given number

más de 4 años hace

Resuelto


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

más de 4 años hace

Resuelto


Summy's even sum

más de 4 años hace

Resuelto


Summy's odd sum

más de 4 años hace

Resuelto


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

más de 4 años hace

Resuelto


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

más de 4 años hace

Resuelto


Prime numbers between a , b.
Find all prime number between a & b (including a and b). example: a=100 b=120 y= [101 103 107 109 113]

más de 4 años hace

Resuelto


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

más de 4 años hace

Resuelto


Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

más de 4 años hace

Resuelto


Check transmitted data follow even parity (True or false)
Check transmitted data follow even parity (True or false) <http://en.wikipedia.org/wiki/Parity_bit/ Parity Bit> Say, '010...

más de 4 años hace

Resuelto


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

más de 4 años hace

Resuelto


square root
Find the square root (y) of an input (x).

más de 4 años hace

Cargar más