Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1.
Hint: use increment.
3 years ago
Solved
Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN.
Example:
input: x = [1 2 5 12 10 7]
...
3 years ago
Solved
Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...
Summation of array
Given an array, Find the sum of all of the elements in it
Examples:
Input x = [1 2 3 5; 4 5 6 7];
Output y is 33
3 years ago
Solved
Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is
720 = 1 * 2 * 3 * 4* 5 *6
Thus 6 factorial = factorial(720)....
3 years ago
Solved
Construyendo matrices parte 2
Construye la siguiente matriz a partir de otros tres vectores/matrices.
[ 1 8 15 3 3 3 3
2 9 16 3 3...
3 years ago
Solved
Calculate compression ratio of engine
Calculate compression ratio of engine given compression volume of cylinder(Vc), piston stroke(s) and valve diameter(d)
3 years ago
Solved
Calculate Engine Power
Calculate Engine Power (P) in kW given the values of Torque(M) in Nm and Engine Speed(n) in rpm
3 years ago
Solved
An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:*
Many important observations in math and science can be described by short, but powerful, equations...
3 years ago
Solved
Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
What is the smalle...