answersLogoWhite

0

The value of a static global variable can never be changed whereas the value of a simple global variable can be changed.

how to create a 3x3 matrix written in c++:

#include

#include//this is only for if you want a string matrix

using namespace.std;

int main()

{

string yourstinghere[3][3];

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

C program for upper triangular matrix for a given matrix?

This sounds very much like a homework problem. If you work on it and get started, you found a great place to ask a specific question. However, this is not a place to have your homework done for you.


How many wrong answers are there for a Rubik's Cube?

One 3x3? Over 4 quadrillion possibilities (4,000,000,000,000,000+) possibilities! ALL the different Rubik's cube versions? Let's not even go there, but I estimate at least 10 to 50 quadrillion (50,000,000,000,000,000+) possibilities!


How do you write a java package program for addition?

A number of well-tested open-source Matrix Java libraries are available. Best to find and use one that's been around for a while since most of the bugs have been worked out. If you need to write your own it's still worth-while to examine the APIs of those libraries first.JAMA is a free Java library for basic linear algebra and matrix operations developed as a straightforward public-domain reference implementation by MathWorks and NIST.Example of Use. The following simple example solves a 3x3 linear system Ax=b and computes the norm of the residual.double[][] array = {{1.,2.,3},{4.,5.,6.},{7.,8.,10.}};Matrix A = new Matrix(array);Matrix b = Matrix.random(3,1);Matrix x = A.solve(b);Matrix Residual = A.times(x).minus(b);double rnorm = Residual.normInf();


Write a program using one print statement to print the asterisks triangle?

#include<stdio.h> #include<conio.h> int main() { int i,j,k,row,m; printf("Enter the no of rows:"); scanf("%d",&row); m=row; for(i=0;i<m;i++) { printf("\n"); for(k=0;k<row;k++) printf(" "); for(j=0;j<=i;j++) printf(" *"); row--; } getch(); }


Write a program for Multiplication of two matrices in java?

//Matrix multiplication import java.util.Scanner; public class Matrix { public static void main(String args[]) { Scanner s= new Scanner(System.in); int i,j,k; System.out.println("enter the value of n"); int n=s.nextInt(); int a[][]=new int[n][n]; int b[][]=new int[n][n]; int c[][]=new int[n][n]; System.out.println("enter the array elements of a:"); for(i=0;i<n;i++) { for(j=0;j<n;j++) { a[i][j]=s.nextInt(); } }//end of a matrix System.out.println("enter the array elements of b:"); for(i=0;i<n;i++) { for(j=0;j<n;j++) { b[i][j]=s.nextInt(); } }//end of b matrix System.out.println("the result matrix is:"); for(i=0;i<n;i++) { for(j=0;j<n;j++) { for(k=0;k<n;k++) { c[i][j]+=a[i][k]*b[k][j]; } } } for(i=0;i<n;i++) { for(j=0;j<n;j++) { System.out.print(+c[i][j]); }System.out.println(); } }//end of main }//end of class

Related Questions

Write a program to substract two 3x3 matrices?

Subtract3by3 (double *a, double *b) { int i, j for (i=0; i<3; i++) for (j=0; j<3; j++) a[i*3+j] -= b[i*3+j]; }


Write a program for 3x3 matrix?

#include<stdio.h> #include<conio.h> void main()


Can you write a program that implements cramers rule for 2x2 and 3x3 matrix?

Yes I can. I did it in QBasic about 15 years ago.


Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?

Sp[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Answer]]ell chec[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answer it!]]k your answe[[Q/Discuss:Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Disc]][[help/answering questions|guidelin]]Spell check your answeresussionr[[help/signing in|full benefits]] Save C[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 ]][[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answering 'Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?']]matrix?ancel[[Q/How many animals are in West Texas|How many animals are in West Texas?]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]] Service workshop?[[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]]More Q&A


How do you solve a 3x3 magic square with the sum of 6?

A normal 3x3 magic square has a sum of 15. So you subtract 3 from each number in the square.


How many matrices of order 3 can have elements 0 or 1?

A 3x3 matrix has 9 elements. If each element can be either 0 or 1 only (two options) then there are 2^9 = 512 possibilities.


What does S R followed by a number mean?

If you mean what does something like SL(3, R) mean, it is the group of all 3X3 matrices with determinant 1, with real entries, under matrix multiplication.


3x3=9?

y


What is 9 as a product of primes?

3x3


How do you verify solution of matrices in 3x3 matrix?

To verify the solution of a 3x3 matrix equation, you can substitute the values obtained for the variables back into the original matrix equation. Multiply the coefficient matrix by the solution vector and check if the result matches the constant matrix. Additionally, you can use methods such as calculating the determinant or applying row reduction to confirm the consistency of the system. If both checks are satisfied, the solution is verified.


How many squares on a 3x3?

Multiple them! 3x3=9 squares!


How many different ways can you use the digits 3 and 5 to write expressions in exponential form What are the expressions?

3x3. 5x5