metre to feet converter
The idea is to make a converter, which exchange meters to feets.
We use a factor of 1m = 3.281*1f.
so 3m are equals to 9.843 m...
9年以上 前
解決済み
Sum of series III
What is the sum of the following sequence:
Σ(2k-1)^3 for k=1...n
for different n?
9年以上 前
解決済み
Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.
Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle.
<<http://upload...
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation,
* F_n = F_(n-1) + F_(n-2)
* where F_0 = 0 and F_1 ...
Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n.
Example
x= [ 1 2 3...
9年以上 前
解決済み
Sum of series I
What is the sum of the following sequence:
Σ(2k-1) for k=1...n
for different n?
vector to string
Determine what the ASCII characters spell out.
Example:
input = [ 72 73 71 72]
output = 'HIGH'
9年以上 前
解決済み
Cumulative product of a vector
Cumulative product of a vector
example
x=[1 2 5 10], then answer must be [ 1 2 10 100]
*If you like this prob...
9年以上 前
解決済み
Make a vector of prime numbers
Input(n) - length of vector with prime numbers
Output(v) - vector of prime numbers
Example:
* n=1; v=2
* n=3; v=[2 3 5...
9年以上 前
解決済み
Product of Array
Given an array of numbers. Get the product of the array.
Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.
9年以上 前
解決済み
Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).
9年以上 前
解決済み
Area of a circle
Given the radius x, y would be the area of a circle.
Pi = 3.1416
9年以上 前
解決済み
Create an anti-identity matrix
Create an anti-identity matrix of given dimension.
Examples
n = 2
A = [0 1; 1 0]
n = 3
A = [0 0 1; 0 1 0; 1 0 0...
9年以上 前
解決済み
Find maximum value of a curve
Two vectors shall be already defined:
- Input vector x (e.g. x = 0:1:10)
- Result vector y (e.g. y = sin(x))
Create a n...