Without using MATLAB trigonometric functions, calculate the cosine of an argument x to a precision of 0.0001
Hint: You may wish to consider the cosine Maclaurin series.
Hello, Shaul Salomon. Besides the existing checking for 'forbidden' commands in your Test Suite, which can report false positives (e.g. discussion of "cosine" in comments), you could consider a more complicated regexp statement, or perhaps use the assessFunctionAbsence function described at https://au.mathworks.com/help/coursework/ug/assessfunctionabsence.html . —DIV
I should have thought of this.
The hard way to go about it, but it worked like a charm!
Project Euler: Problem 2, Sum of even Fibonacci
What number has this problem?
multiply by three
MATLAB Basic: rounding
Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.
Remove the first, third and fifth rows of a matrix
How many unique Pythagorean triples?
Find the largest number
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office