How to Code a Vandermonde Matrix Inverse in Java?

  • Context: Undergrad 
  • Thread starter Thread starter Parth Dave
  • Start date Start date
  • Tags Tags
    Inverse Matrices
Click For Summary

Discussion Overview

The discussion centers around coding a Vandermonde matrix inverse in Java, specifically in the context of a program that computes polynomial coefficients from user-inputted data. The focus is on the technical aspects of matrix manipulation and coding challenges related to finding the inverse of the matrix.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant describes the need to create a Vandermonde matrix of degree 3 and compute the polynomial coefficients a, b, c, and d.
  • The same participant mentions being able to create the matrix and find its transpose but struggles with coding the inverse.
  • Another participant asks for clarification on the programming language being used.
  • A further participant inquires about the meaning of the coefficients a, b, c, and d, which are identified as the coefficients of the polynomial function f(x) = ax^3 + bx^2 + cx + d.
  • The original poster confirms a preference for Java over C++ due to familiarity.

Areas of Agreement / Disagreement

The discussion does not present any consensus, as participants are seeking clarification and additional information rather than agreeing on a solution or approach.

Contextual Notes

There are limitations regarding the specific coding techniques for finding the inverse of a Vandermonde matrix, as well as the assumptions about the user's familiarity with Java and matrix operations.

Who May Find This Useful

This discussion may be useful for individuals interested in programming matrix operations, particularly in Java, and those working on polynomial interpolation problems using Vandermonde matrices.

Parth Dave
Messages
298
Reaction score
0
I have to right a computer program that uses data inputted by the user, creates a vandermonde matrix (3rd degree) and than computes the values of a, b, c and d. I can create the vandermonde matrix, find the transpose and than multiply. However, I can't seem to figure out who to find the inverse. I do know how to find the inverse, but i can't seem to code it. I was just wondering how I would code it to right the matrix inverse. Any help would be appreciated. (is this in the right section?)
 
Physics news on Phys.org
What language are you writing this program in?
 
And what are a,b,c, and d?
 
a, b, c, d and coefficients of the polynomial, that is
f(x) = ax^3 + bx^2 + cx + d

and in either java or c++ (preferably java since I'm more fimiliar with it)
 

Similar threads

  • · Replies 34 ·
2
Replies
34
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K