Eigenvalues and Eigenvectors in SCILAB

Scilab has an inbuilt function called spec(A) to calculate the Eigenvalues of a Matrix A.
If you type,
where d is a diagonal matrix which contains the eigen-values,
and c is a matrix that stores the eigen-vectors as it’s columns.

The following code illustrates the use of the function spec(A) to print the eigenvalues and eigenvectors of Matrices.

//Eigenvalues and Eigenfunctions
disp(spec(A),"The Eigen-values of matrix A are:");
disp(c,"The corresponding Eigen-vectors of matrix A is:");
disp(spec(B),"The Eigen-values of matrix B are:");
disp(e,"The corresponding Eigen-vectors of matrix B is:");
disp(spec(C),"The Eigen-values of matrix C are:");
disp(g,"The corresponding Eigen-vectors of matrix C is:");




PhD researcher at Friedrich-Schiller University Jena, Germany. I'm a physicist specializing in computational material science. I write efficient codes for simulating light-matter interactions at atomic scales. I like to develop Physics, DFT and Machine Learning related apps and softwares from time to time. Can code in most of the popular languages. Like to share my knowledge in Physics and applications using this Blog and a YouTube channel.
[wpedon id="7041" align="center"]

2 thoughts on “Eigenvalues and Eigenvectors in SCILAB

  1. Dear Sir,
    I am a Ph.D. student and working on DFT. I want to learn Siesta but there are very limited materials I get from google. Please make some videos on Siesta.

Leave a Reply

Your email address will not be published. Required fields are marked *