Question: Problem 1 Create an Octave script file, hw 2 a . m , to do the following: A geometric series is defined as the sequence
Problem
Create an Octave script file, hwam to do the following:
A geometric series is defined as the sequence x x
x
x
in which the powers of x range over the
integers from to infty The sum of the terms in a geometric series converges to the limiting value x
if ; otherwise the terms diverge.
a For x compute the sum of the first eleven terms in the series, and compare the
result with the limiting value. Repeat for and terms. Do this by generating a
vector of integers to use as the exponent of x; then use the sum function.
b Create a vector with elements that are the difference between limiting value and the
sum of the sequences for and terms.
Problem :
Create an Octave script file, hwbm that allows the user to input the coefficients and constants of a
system of linear equations. Determine if there is a unique solution and output that solution. Your
program should also check if the answer is correct and print out a message stating it is correct.
It is up to you to decide how to input the data. To test your program, the system of equations below has
a solution x y and z
xyz
xyz
xyz
Problem :
Create an Octave script file, hwcm that does the following:
When an object is falling because of gravity, the following formula can be used to determine
the distance the object falls in a specific time period.
The variables in the formula are as follows:
d distance in meters
g
t time in seconds
a Prompt the user for the time in seconds.
b Calculates the distance in meters it will fall at time steps from to the users input time
value. Output the distances.
Converts the distances calculated in b to feet. Output the distances in feet.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
