Top 10% contributor
5 days ago
7 months ago
Convert between binary fixed point two's complement strings and decimal numbers.
2 years ago
Compute Fresnel integral.
Given an integer n, return the corresponding ordinal number as a character string. For example,
A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
Reverse the vector elements.
Input x = [1,2,3,4,5,6,7,8,9]
Output y = [9,8,7,6,5,4,3,2,1]
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
Triangle numbers are the sums of successive integers. So 6 is a triangle number because
6 = 1 + 2 + 3
which can be displa...
Given the input n, return true if n is odd or false if n is even.
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Regardless of input, output the string 'yes'.
3 years ago
Extension of the built-in MATLAB function hypot for multiple inputs.
Join the conversation