Gelöst


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

fast 10 Jahre vor

Gelöst


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

fast 10 Jahre vor

Gelöst


Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

fast 10 Jahre vor

Gelöst


N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...

fast 10 Jahre vor

Gelöst


Calculate 3D Distance
Given 2 vectors (1st is initial position, 2nd is the destination) calculate the distance in 3D Example in1 = [0 0 0] in2...

fast 10 Jahre vor

Gelöst


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area.

fast 10 Jahre vor

Gelöst


Vectors multiplication.
Multiply two vectors x transposed and y.Example x = [1 2 3 4 5 6 7 8 9 10 ] y = [ 1 2 ...

fast 10 Jahre vor

Gelöst


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

fast 10 Jahre vor

Gelöst


Сoncatenate two strings into one
Concatenate two strings, become one strings Example: s1 = 'Hello' s2 = 'world' result = "Hello world "

fast 10 Jahre vor

Gelöst


Calculate cross product
Make function for cross product a=[1 3 2]; b=[2 4 1]; y=function(a,b) y=[-5 3 -2]

fast 10 Jahre vor

Gelöst


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

fast 10 Jahre vor

Gelöst


Calculate determinent
Calculate determinent of given matrix A=[2 4;3 5]; function(A) Output should be -2

fast 10 Jahre vor

Gelöst


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

fast 10 Jahre vor

Gelöst


Derive Me Crazy
Given a polynomial, output its derivative Example: input = [1 0 0]%x^2 output = [2 0]%2x

fast 10 Jahre vor

Gelöst


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

fast 10 Jahre vor

Gelöst


Expand a term
Given a term, as a string, expand it. e. g. f = '2(x + y)';

fast 10 Jahre vor

Gelöst


Adding each element
Add the each element of the matrix.

fast 10 Jahre vor

Gelöst


check string
display any string

fast 10 Jahre vor

Gelöst


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

fast 10 Jahre vor

Gelöst


Triplicate me
Given an input vector, output a 3n vector with all elements of input vector repeated thrice Example : in->[1 2 3 5] out...

fast 10 Jahre vor

Gelöst


Make roundn function
Make roundn function. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) y=0.56 ...

fast 10 Jahre vor

Gelöst


Weighted moving average
x1=[1 2 1]; y1=[1 2 2 4 5 6 6 8]; Make function for weighted moving average. z(i)=(x1(i)*y1(i)+x1(i+1)*y1(i+1)+x1(i+2)*y1...

fast 10 Jahre vor

Gelöst


Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

fast 10 Jahre vor

Gelöst


Calculate representive values (max. min. std)
A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 2.8 2.2 t=3 2.6 2.7 2....

fast 10 Jahre vor

Gelöst


Duplicate me
Repeat elements of vector input twice Ex: input = [1 2 3] output = [1 1 2 2 3 3]

fast 10 Jahre vor

Gelöst


Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

fast 10 Jahre vor

Gelöst


Bae Slap Counter LOL XD
How many times did your bae had slapped you? Create a formula counts how many times you are slapped

fast 10 Jahre vor

Gelöst


Non trivial identities - colon
Return x after treating it with colon.

fast 10 Jahre vor

Mehr laden