A résolu


Swap

environ 4 ans il y a

A résolu


Swap rows

environ 4 ans il y a

A résolu


Test

environ 4 ans il y a

A résolu


speed limit alert

environ 4 ans il y a

A résolu


Row avg

environ 4 ans il y a

A résolu


Row sum

environ 4 ans il y a

A résolu


Size

environ 4 ans il y a

A résolu


Variance computation (★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

environ 4 ans il y a

A résolu


area

environ 4 ans il y a

A résolu


Calculate the area of a circle
Given a circle of diameter x calculate its area

environ 4 ans il y a

A résolu


Divide pi
Divide pi by x!

environ 4 ans il y a

A résolu


Factorize uniquely! (★★)

environ 4 ans il y a

A résolu


Surface area of a cone

environ 4 ans il y a

A résolu


Prime number check (★★)
One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...

environ 4 ans il y a

A résolu


Approximate functions 1 (★★★)
Compute the following sum for any given x and positive integer n. <<https://i.imgur.com/eUwXdSE.gif>> <> Here m! denote...

environ 4 ans il y a

A résolu


Finding sum of even numbers in a vector.
Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

environ 4 ans il y a

A résolu


PEMDAS test (★★)
Create the function that will return the following expression for x and y. <<https://i.ibb.co/RHWyzrv/Code-Cogs-Eqn-1.gif>> ...

environ 4 ans il y a

A résolu


Magnitude of a vector (★★★)
Given a vector x with values [ x1, x2, x3, ..., xn ], compute the magnitude (or length) of the vector which is given by href ...

environ 4 ans il y a

A résolu


Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

environ 4 ans il y a

A résolu


Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

environ 4 ans il y a

A résolu


Generate n equally spaced "intervals" between -x and x (★)
Given n and x, return a list of numbers (in ascending order) that divides the interval [-x x] into n equal-length intervals. ...

environ 4 ans il y a

A résolu


Create a vector of n alternating ones and zeros (★★)
Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

environ 4 ans il y a

A résolu


Doubling elements in a vector (★★)
(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...

environ 4 ans il y a

A résolu


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

environ 4 ans il y a

A résolu


Bell Triangle
Form the bell triangle upto nth bell number posotion; * if n=5 * y= [1 0 0 0 0; 1 2 0 0...

environ 4 ans il y a

A résolu


Restricted Addition v2
This problem is Restricted Addition v1 with more restrictions. Also, you must handle negative and non-integer values. Add two n...

environ 4 ans il y a

A résolu


Restricted Addition v1
Add two numbers without use of common arithmetic operations. Unfortunately, in order to enforce this restriction, other restrict...

environ 4 ans il y a

A résolu


Watt
Ampere x Volt = Watt

environ 4 ans il y a

A résolu


Perimeter of a Triangle

environ 4 ans il y a

A résolu


Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

environ 4 ans il y a

Charger plus