Mathematics

Mathematics

C program of Matrix Multiplication using Pointers

C program of Matrix Multiplication using Pointers : Let us discuss how to multiply M x N matrix using a C program. First of all we need to understand how an M x N matrix multiplication takes place. Matrix multiplication is a binary operation that takes a pair of matrices, and produces another matrix as output. Matrix is basically...

C program to convert Roman Number to Decimal Number

C program to convert Roman Number to Decimal Number : In my previous code, we have learned how to write a C program to convert Decimal number to Roman Number. Today we will learn how to write a C program to convert Roman Number to Decimal Number. Roman numerals, the numeric system in ancient Rome, uses combinations of letters from...

C program to find Inverse of Matrix

C program to find Inverse of Matrix : For a square matrix A, the inverse matrix is written A-1. When A is multiplied by A-1 the result is the identity matrix I. Non-square matrices do not have inverses. There are several different methods for calculating inverse of Matrix like Augmented Matrix Method, Adjoint Method and few shortcut methods. Today...

C program to find roots of quadratic equation

C program to find roots of quadratic equation : In mathematics, quadratic equation is second degree univariate polynomial equation. A general quadratic equation can be represented by : where a, b and c are the coefficients of quadratic equation and a ≠ 0 . If a = 0 then it will be linear equations. Now the solutions of quadratic equation can...

C Program of Set Operations in Maths

C program of set operations in Maths : A set in mathematics is a collection of well defined and distinct objects, considered as an object in its own right. In the below program, i have represented a set using an  array of integers(for sake of simplicity, concept can be extended to array of characters too). The below code that i...

C program to Print Pascal Triangle | C code champ

C program to print pascal triangle : In our previous code, we have seen how to draw a pyramid using C program. Now we will see how to extend our previous logic to print pascal's triangle using C code. But first of all, we must know what is pascal triangle is ? (From Wikipedia) In mathematics, Pascal's triangle is a...