Complex number
For complex number c=a+bi, write code that will add a and b together.
6年弱 前
解決済み
Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector of numbers, output a square array with the...
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x.
<<https://i.imgur.com/jlZDHhq.png>>
Image courtesy of <http://up...
Piecewise linear interpolation
Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...
6年弱 前
解決済み
Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as:
k...
6年弱 前
解決済み
Find the Best Hotels
Given three input variables:
* |hotels| - a list of hotel names
* |ratings| - their ratings in a city
* |cutoff| - the rat...
6年弱 前
解決済み
Solve the Sudoku Row
*Description*
A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
6年弱 前
送信済み
patterned_movie
a small animated movie of creating a graphic shown in image.
6年弱 前 | ダウンロード 1 件 |
5.0 / 5
解決済み
Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|.
Mark the minimum...
約6年 前
解決済み
Calculate area of sector
A=function(r,seta)
r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...