Solved


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

2 years ago

Solved


Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values. For example, for the list [-30, -5, 1...

2 years ago

Solved


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

2 years ago

Solved


Nth root
Nth root of a number x

2 years ago

Solved


Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

2 years ago

Solved


Square
square root of x

2 years ago

Solved


cube of number
find cube of number

2 years ago

Solved


square root
Find square root of given number

2 years ago

Solved


Squares inside a square!

2 years ago

Solved


Area of a rectangle
FInd the area of a rectangle with a length L and width W. Round to the nearest integer.

2 years ago

Solved


Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

2 years ago

Solved


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

2 years ago

Solved


Multiply to the limit?
If y = 4*x*x/pi/pi then what is the ultimate limiting result of (1+y/1/1)(1+y/3/3)(1+y/5/5)(1+y/7/7)... ... within 1000*eps?

2 years ago

Solved


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

2 years ago

Solved


Cutoff OF Exam

2 years ago

Solved


Efficiency of a single phase Transformer
Calculate the efficiency of a single phase transformer whose KVA rating is A KVA, loading factor x,power factor p,full load copp...

2 years ago

Solved


Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

2 years ago

Solved


Add 2 Vectors

2 years ago

Solved


Dot Product

2 years ago

Solved


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

2 years ago

Solved


Find Sum of array

2 years ago

Solved


10% Discount

2 years ago

Solved


Find square of given number
Find Square of any number

2 years ago

Solved


Square root of number
Square root of given number.

2 years ago

Solved


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

2 years ago

Solved


Check if a number belongs in the fibonacci squence
Test if integer i is a number in the fibonacci sequence. Return true if it is.

2 years ago

Solved


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

2 years ago

Solved


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

2 years ago

Solved


Calculate days until Christmas
Provided with inputs year, month, day e.g. 2019,11,12, calculate the number of days until the next Christmas day, i.e. the next ...

2 years ago

Load more