Resuelto


Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3

casi 12 años hace

Resuelto


Complex number
For complex number c=a+bi, write code that will add a and b together.

casi 12 años hace

Resuelto


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

casi 12 años hace

Resuelto


Rounding
Round 10.67 and make 'y' equal to that number.

casi 12 años hace

Resuelto


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

casi 12 años hace

Resuelto


length of a vector
Find twice the length of a given vector.

casi 12 años hace

Resuelto


Determine if given number is perfect
A number is <http://en.wikipedia.org/wiki/Perfect_number perfect> if it is equal to the sum of its factors, excluding itself. ...

casi 12 años hace

Resuelto


Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

casi 12 años hace

Resuelto


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

casi 12 años hace

Resuelto


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

casi 12 años hace

Resuelto


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

casi 12 años hace

Resuelto


Cull vector elements that contain a specified digit
Given inputs of (1) a row vector and (2) a digit, identify the elements of that vector that contain the digit, remove them, and ...

casi 12 años hace

Resuelto


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

casi 12 años hace

Resuelto


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.

casi 12 años hace

Resuelto


grazing cows
Here is a fun problem I encountered in high school. Two cows are grazing in an enclosed square-shaped field of side length s ...

casi 12 años hace

Resuelto


Lucy posits that if a person were able
Lucy posits that if a person were able to somehow assess 100 percent of his or her brain capacity, [url=http://www.wakdanfc....

casi 12 años hace

Resuelto


Interpolation of Hankel function
I need to interpolate a sampled function combined of Hankel and Bessel functions. (received wave of antenna) Any one has g...

casi 12 años hace

Resuelto


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

casi 12 años hace

Resuelto


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

casi 12 años hace

Resuelto


Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

casi 12 años hace

Resuelto


Sum of Dividend Digits
Find the smallest number that consist of only number 1's (e.g. 11111111111) which satisfy a given divisor and remainder. Then re...

casi 12 años hace

Resuelto


Area of a circle
Find the value for area of the circle if diameter is given

casi 12 años hace

Resuelto


Obtain the Bitcoin address associated to a given private key
All the information you need is at <https://en.bitcoin.it/wiki/Address> and you may also find helpful <https://brainwal...

alrededor de 12 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. So if input x is x = [1 2 3 5] then the output y should be 11.

alrededor de 12 años hace

Resuelto


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

alrededor de 12 años hace

Resuelto


Text processing - Help Johnny write a letter home from camp
Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more ...

alrededor de 12 años hace

Resuelto


Latest Question On Cody
Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.

alrededor de 12 años hace

Resuelto


Enlarge array
Given an mxn numeric array (A) and a 1x2 vector (sz) indicating the dimensions [p q] to enlarge each element, return an (m*p)x(n...

alrededor de 12 años hace

Resuelto


Convert elements in numeric array into different class
Write a function that converts elements in a numeric array into a different class. Example: a = [1:5]; % class: double b...

alrededor de 12 años hace

Resuelto


Possible Outcomes of American Roulette
The payout for American roulette can be calculated by: payout = (38/n)-1 where n is the number of squares the bet covers. ...

alrededor de 12 años hace

Cargar más