Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input
Sum of series
a(n) = n^2 - (n-1)^2
find the summation of the series upto n i.e.
a(1)+a(2)+...+a(n)
4年弱 前
解決済み
geometric progression
I've modified my <http://uk.mathworks.com/matlabcentral/cody/problems/2800-arithmetic-progression previous program> so that it n...
4年弱 前
解決済み
Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series:
pi/4 = 1 - 1/3 + 1/5 - 1/7 + ...
For a given numbe...
4年弱 前
解決済み
Collect a set of candy wrappers
This past Halloween, the siblings Matilda and Labrun amused (and sometimes confused) their many neighbors with their costumes in...
4年弱 前
解決済み
Sum of series VII
What is the sum of the following sequence:
Σ(km^k)/(k+m)! for k=1...n
for different n and m?
4年弱 前
解決済み
Sum of series VI
What is the sum of the following sequence:
Σk⋅k! for k=1...n
for different n?
4年弱 前
解決済み
Sum of series IV
What is the sum of the following sequence:
Σ(-1)^(k+1) (2k-1)^2 for k=1...n
for different n?
4年弱 前
解決済み
Sum of series V
What is the sum of the following sequence:
Σk(k+1) for k=1...n
for different n?
4年弱 前
解決済み
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...
Kurchan Square - Evaluation Function
Evaluate a Kurchan square. An NxN square with values 1:N^2.
Given a square matrix determine the products of each row, column,...
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).
4年弱 前
解決済み
Distances in a circle
A circle (360°) is given and
a row of 6 monotonic increasing numbers with the which difference from last to first value is les...
4年弱 前
解決済み
Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.
4年弱 前
解決済み
Ramanujan's Number
About 1729
1729 is the first positive integer which can be expressed as the sum of two positive cubes in two different ways.
...
4年弱 前
解決済み
Pick the die most likely to win
After discussing Rock, Paper, Scissors, Lizard, Spock in The Simpsons and their Mathematical Secrets, Simon Singh writes that in...
4年弱 前
解決済み
Convert a vector into a number
This is a sub problem related to this problem:
<http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...
Easy Sequences 23: Hat Guessing Game!
Consider the following Game Show:
Hats, with numbers written on each, were placed on the heads of the participants. Participant...
4年弱 前
解決済み
Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...