Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 0;
y_correct = 0;
assert(abs(SIN(x)-y_correct)<0.01)
y =
6.1232e-17
|
2 | Pass |
x = pi/2;
y_correct = 1;
assert(abs(SIN(x)-y_correct)<0.01)
y =
1
|
3 | Pass |
x = pi;
y_correct = 0;
assert(abs(SIN(x)-y_correct)<0.01)
y =
6.1232e-17
|
4 | Pass |
x = 1.5*pi;
y_correct = -1;
assert(abs(SIN(x)-y_correct)<0.01)
y =
-1
|
How to find the position of an element in a vector without using the find function
2477 Solvers
594 Solvers
Project Euler: Problem 10, Sum of Primes
707 Solvers
323 Solvers
Convert decimal to binary and then generate the minimum binary it can with jumbling
55 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!