473,699 Members | 2,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Matrix and Inverse matrix

21 New Member
Hello friends, i need help for my assignment.
For example i give input for a, b, c, d in matrix mode example like
|a b|
|c d|
and i want to convert it to invers from that matrix, i hope you give the answer(if possible with the explanation).
Thx so much for your help
Nov 29 '06 #1
11 14655
Killer42
8,435 Recognized Expert Expert
Hello friends, i need help for my assignment.
For example i give input for a, b, c, d in matrix mode example like
|a b|
|c d|
and i want to convert it to invers from that matrix, i hope you give the answer(if possible with the explanation).
Thx so much for your help
Have you made any sort of a start on this?
Nov 29 '06 #2
Budiman
21 New Member
Have you made any sort of a start on this?
Sorry i don't understand your question.
Can you just make the program?
in 4 variable in matrix i want it to be invers matrix
Nov 29 '06 #3
sashi
1,754 Recognized Expert Top Contributor
Sorry i don't understand your question.
Can you just make the program?
in 4 variable in matrix i want it to be invers matrix
Hi there,

Killer42 was trying to ask if you have started your initial programming, hope you understand clearly now. Sorry, at the TheScripts we do not provide programming services, instead, we help programmers to debug their code segment. Take care.
Nov 29 '06 #4
Killer42
8,435 Recognized Expert Expert
Killer42 was trying to ask if you have started your initial programming, hope you understand clearly now. Sorry, at the TheScripts we do not provide programming services, instead, we help programmers to debug their code segment.
Or to put it another way, we're here to help, not to do everything for you.
Nov 29 '06 #5
Budiman
21 New Member
ooo i understand that situation, actually i don;t understandf anything in visual basic but i can understand in C++. My teacher ask me to make program in visual basic.
First i need your help to teach me alittle bit or you please give me your thinking than i make the program my self
Dec 2 '06 #6
dwadish
129 New Member
Hello friends, i need help for my assignment.
For example i give input for a, b, c, d in matrix mode example like
|a b|
|c d|
and i want to convert it to invers from that matrix, i hope you give the answer(if possible with the explanation).
Thx so much for your help
i will help you with a suitable example tomorrow.
Dec 3 '06 #7
Killer42
8,435 Recognized Expert Expert
i will help you with a suitable example tomorrow.
Actually, I'm glad someone can help. I didn't really follow the question all that well, and don't know anything much about matrices.
Dec 3 '06 #8
DeMan
1,806 Top Contributor
Basically, we want to try to conver the matrix into
|1 0|
|0 1| (called I)

and record what we do on another I matrix. If an inverse exists we will be able to reduce our matrix to the I matrix. Thus we could begin:
|a, b|
|c, d|
and reduce it into row echelon form (hopefully ending in I), while keeping track of our steps with a copy of I.

Thankfully there are shortcuts that have been found, and for a 2D matrix it makes things pretty simple. Let us assume we have a matrix :
Expand|Select|Wrap|Line Numbers
  1. |a, b|               = A
  2. |c, d|
  3.  
we first calculate the determinant =ad -bc

Then the inverse matrix (assuming the determinant (denoted |A| ) is
Expand|Select|Wrap|Line Numbers
  1. 1/|A|     *      |d, -b|
  2.                  |-c, a|
  3.  
ie:

Expand|Select|Wrap|Line Numbers
  1. |d/(ad-bc), b/(bc-ad)|
  2. |c/(bc-ad), a/(ad-bc)| //notice I have eliminted the signs by swapping the order of the eq'n in the denominator
  3.  
Incidentally (and I'm sure you're not really interested, but this idea can be extended for larger matrices also).

THUS: All you need to do is write code to take 4 inputs (from text boxes arranged as a matrix) and to output four labels (again arranged as a matrix) solved using the equations above. Hope this helps!!! (If you are still having trouble, I may be able to help, but as I mentioned VB is not really my forte'....)
Dec 4 '06 #9
vba
1 New Member
Plz i want a VB code for matrix inverse as early as possible.plz can u help me.
Jun 8 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

6
25203
by: vishnu mahendra | last post by:
hello to all, can any one please give me an algorithm to find inverse of a matrix of order n rows and m columns. thank you in advance, vishnu.
5
2905
by: Tiza Naziri | last post by:
Hi, How to represent this matrix equation in C code: / a0 \ / 0 1 0 1 0 0 1 0 \/ b0 \ | a1 | | 0 0 1 0 1 0 0 1 || b1 | | a2 | | 1 0 0 1 0 1 0 0 || b2 | | a3 |=| 0 1 0 0 1 0 1 0 || b3 | | a4 | | 0 0 1 0 0 1 0 1 || b4 | | a5 | | 1 0 0 1 0 0 1 0 || b5 |
20
5228
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've used various techniques ( loop unrolling, loop jamming...) and tried some matrix libraries : newmat (slow for large matrix) , STL (fast but ..not usefull) , hand coding (brain consuming...), and recently Meschach...
0
2391
by: YUSUF ISIAKA | last post by:
Him please help me with the codes for the following questions: 1. Write a program in c/c++ to compute the inverse of a square matrix. 2. Write a program in c/c++ to compute the determinant of a square matrix.
14
6213
by: Paul McGuire | last post by:
I've posted a simple Matrix class on my website as a small-footprint package for doing basic calculations on matrices up to about 10x10 in size (no theoretical limit, but performance on inverse is exponential). Includes: - trace - transpose - conjugate - determinant - inverse - eigenvectors/values (for symmetric matrices)
2
13312
by: leelaramtenneti | last post by:
hello I need a program to find a Inverse of a square complex matrix in java... . The program should calculate the inverse of a matrix in which each element has both real and imaginary parts. Or atleast help me in finding inverse of a ordinary n*n square matrix in java
2
8560
by: DarrenWeber | last post by:
Below is a module (matrix.py) with a class to implement some basic matrix operations on a 2D list. Some things puzzle me about the best way to do this (please don't refer to scipy, numpy and numeric because this is a personal programming exercise for me in creating an operational class in pure python for some *basic* matrix operations). 1. Please take a look at the __init__ function and comment on the initialization of the list data...
0
2808
by: DarrenWeber | last post by:
# Copyright (C) 2007 Darren Lee Weber # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY...
3
6376
by: aaram81 | last post by:
I need a help in C++ for the following question: write a p[rogram to read 4 by 4 matrix, store it and find the inverse of this matrix. then multiply the inverse with the original matrix , store it . lastly print the inverse of the matrix which is output of multiplication. Could you help me please...somebody..????
1
15246
by: dazzler | last post by:
Hi! I have problem with numpy, multiplying with an inversed matrix will crash python :( this works fine: from numpy import matrix A = matrix(,]) B = matrix(,]) print A.I #inverse matrix
0
8706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9055
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8899
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7786
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5889
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4391
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2016
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.