i got to to write a program for steffensens method on matlab.
my equation is x=cosx and my initial value is x0=2 and got to do up to the 14 iterations.
error = x_n - a
a= 0.7390851332151607
i don't get an answer close to it.
i get something around 10.xxxx
here is my code.
function...
This is the project.
I have until next week. The requirement for the class is c++. (elementary numerical analysis btw). I have an idea of what is going to happen for the results but i have no idea on how to program it. I've have probably used Matlab 3 or 4 times using a premade program. Can...
Homework Statement
Find (a) a basis for and (b) the dimension of the solution space of the homogeneous system of equations.
x - 2y + z = 0
y - z + w = 0
x - y + w = 0
Homework Equations
The Attempt at a Solution
(a)
[1 -2 1 0] => [1 0 -1 2]
[0 1 -1 1] => [0 1...
i need help making a program that only displays the prime factors
ex: 100 = 2*2*5*5
i got the program to display all the factors but after that I am lost.
here is the code so far
oh its in C++
#include <iostream>
using namespace std;
int main()
{
cout << "Enter a number: "...
Homework Statement
if T is an invertible matrix, and A=(T^-1)B*T, prove that det B = det A
Homework Equations
A(BC) = (AB)C
The Attempt at a Solution
im not certain if inverse T and T will cancel to 1
A=B
det A = det B