Cos Function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.
10ヶ月 前
解決済み
How many trades represent all the profit?
Given a list of results from trades made:
[1 3 -4 2 -1 2 3]
We can add them up to see this series of trades made a profit ...
10ヶ月 前
解決済み
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
10ヶ月 前
解決済み
Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row.
...
10ヶ月 前
解決済み
Perimeter of a quadrilateral
There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...
Calculate load on arm 1
A robot is designed with a motor directly attached at the pivot point of the lifting arm. The L inch arm has a weight of W1 lbs...
10ヶ月 前
解決済み
Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them.
For instance,
...