Solved

Basic Quadratic Equation

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

1 year ago

Solved

Prime Product

My professor has given a sequence of N numbers as a1, a2, ..., aN and asked me to find the smallest possible value of ai * aj su...

1 year ago

Solved

how many of the entries are positive?

Given x= sin(linspace(0,10*pi,100)), how many of the entries are positive?

1 year ago

Solved

Was ist denn los?

Nur für deutschsprechende Leute! Wie geht's? ...also gut, bis bald!

1 year ago

Solved

Counting votes

x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

1 year ago

Solved

Remove the middle element from a vector

Remove the middle element of a vector? *Example:* [1,2,3] should return 2 [1,2,3,4] should return 2 [] should return...

1 year ago

Solved

Finding two missing number in 1 to n array

You are given an array of numbers from 1 to n with two missing numbers. Return the two missing numbers. Input: x=[5 2 0 1 ...

1 year ago

Solved

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

1 year ago

Solved

Find Euclidean norm of given vector u.

Find Euclidean norm of given vector u. https://en.wikipedia.org/wiki/Euclidean_distance Example x=[1 1] result=sqrt(1^2+1^2...

1 year ago

Solved

How many digits are there?

Input(s) - any string Output(n) - number of digits within string s

1 year ago

Solved

Second smallest number

What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

1 year ago

Solved

Count number of words in string

Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

1 year ago

Solved

Remove and Sort

Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

1 year ago

Solved

Initialize a Natural Number matrix.

Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

1 year ago

Solved

Flipping a Matrix

Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

1 year ago

Solved

Increment up an input vector

Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

1 year ago

Solved

Add the odd numbers

Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

1 year ago

Solved

Calculate the answer to life the universe and everything

<https://en.wikipedia.org/wiki/42_(number)>

1 year ago

Solved

Zero Cross

Write a function that counts the number of times n a signal x changes sign. Examples x = [1 2 -3 -4 5 6 -7 8 -9 10 11] ...

1 year ago

Solved

Add the even numbers

Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

1 year ago

Solved

Sum of series IV

What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

1 year ago

Solved

Sum of series VI

What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

1 year ago

Solved

0, 2, 0, -2, 0, 2, 0, -2, ...

Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

1 year ago

Solved

Find the volume of cone

Find the volume of cone, when given radius(r) and height(h).

1 year ago

Solved

Set x value to each even index of vector y.

Set x value to each even index of vector y.

1 year ago

Solved

Find scalar product of two polynomials a and b, given as vector array.

Find scalar product of two polynomials given as vector array. Example a=[1 -1 2]; b=[2 4 1]; result=0

1 year ago

Solved

Delete x value in given vector y.

Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

1 year ago

Solved

Pointwise multiplication of vectors.

Pointwise multiplication of vectors x and y. Example x= [1 3 5 7 9 11 13 15 17 19] y=[ 1 4...

1 year ago

Solved

determine the sum of the squares

if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

1 year ago