Square a Number
Given an input x, return y, which is equal to the square of x.
1日 前
解決済み
Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer:
e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2
1日 前
解決済み
CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A)
For example tan(A)=3/4 then sin(A)=3/5
1日 前
解決済み
Negative Infinity
Round the given array a towards negative infinity.
1日 前
解決済み
Simple return on investment
Assume you have some money and want to invest all your money to stock market. You randomly select a stock and invest all your mo...
convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them.
The first input C is ...
1日 前
解決済み
Area of a circle
Given the radius x, y would be the area of a circle.
Pi = 3.1416
1日 前
解決済み
Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.
Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once.
Example:
Input s ...
1日 前
解決済み
Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32).
Input a = ' singular value deco...
1日 前
解決済み
Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector, output true or false whether it is a colu...
1日 前
解決済み
Sum All Positive Elements
Output a scalar that is equal to the sum of all positive elements in a given vector/matrix.
For Example:
The sum of all positi...