Simple Electrical Power Calculation
Calculate the electrical power using the formula:
P=V×I
where:
V is the voltage (in volts)
I is the current (in amperes)
15日 前
解決済み
Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I
where:
V is the voltage (in volts)
I is the current (in ampere...
Mesh the tetrahedron
Problem statement
An tetrahedron is a regular polyhedron with 4 vertices and 4 triangular faces. It is also one of the five w...
15日 前
解決済み
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because
6 = 1 + 2 + 3
which can be displayed ...
15日 前
解決済み
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...
15日 前
解決済み
Mesh the cube
Problem statement : mesh the cube with quadranglar / squared faces
An cube / regular hexahedron is a regular polyhedron with ...
15日 前
解決済み
Mesh the octahedron
Problem statement
An octahedron is a regular polyhedron with 6 vertices and 8 triangular faces. It is also one of the five we...
15日 前
解決済み
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1.
Hint: use increment.
15日 前
解決済み
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for:
A = [ 1 5 8 ]
then
B = [ 1 1 5 ...
15日 前
解決済み
Create a vector
Create a vector from 0 to n by intervals of 2.
15日 前
解決済み
Flip the vector from right to left
Flip the vector from right to left.
Examples
x=[1:5], then y=[5 4 3 2 1]
x=[1 4 6], then y=[6 4 1];
Request not to use d...