Box
Give the volume of a box, x is equal to the body diagonal.
5 months ago
Solved
Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...
5 months 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...
Division
Given two numbers a and b divide them a/b
5 months ago
Solved
Path calculation with polynomials
Let a vector x be the input to our function.
1. If a value of an input vector element x is lower than 0, set this value to 0....
5 months ago
Solved
Find maximum value of a curve
Two vectors shall be already defined:
- Input vector x (e.g. x = 0:1:10)
- Result vector y (e.g. y = sin(x))
Create a n...
5 months ago
Solved
Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square.
...
5 months ago
Solved
Area-02
Given the radius of the circle inscribed in a square, find the area of the square that can be fitted perfectly in the corner.
...
5 months ago
Solved
Area-06
The length of the side of a square is given.
Draw 4 quarter-circles inside the square from 4 corners with a radius equal to the...
5 months ago
Solved
'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...