Tuples in Python

Tuples in Python

Tuples in Python Tuples in Python are ordered collection of items(integer, float, string) which are immutable. The only difference from list you can notice that a tuple in Python is immutable. Further, it uses parenthesis to create a tuple. However, tuples can also be created without parenthesis separated by comma. Now open terminal or jupyter … Read more Tuples in Python

Decision Making in Python

Decision Making in Python

  Decision making is fundamental in making a program. All programming languages provide in-built structure for it and Python is not exception. In this post, I will explain decision making using if else statements. Syntax if expression: Example of expressions x > 4 x < 4 x == 4 In Python you will write if … Read more Decision Making in Python

Variable Declaration and Definition in Python

  Variable Declaration and Definition in Python Unlike C/C++ and Java, Python uses dynamic typed variables. What does it mean? To know answer of the question see the variable declaration in C. int x; It means you declare a variable x then compiler allocates memory and assigns a garbage value to x. You can initialize … Read more Variable Declaration and Definition in Python

List in Python

List in Python

List in Python List in Python is a very powerful data structure which can store any type of data which is supported by Python. It is created using square bracket for example l=[2,4,5.2,’post’,’network’,10] this statement creates a list object of class list, and indexes objects as l[0], l[1], l[2], l[3], l[4] and l[5]. If you … Read more List in Python

Quadratic Form in Linear Algebra

Matrix of a Quadratic Form in 3 Variables

Quadratic Form in Linear Algebra An expression is called quadratic form in the variables x1, x2, x3,………….,xn over field F. Where aij i=1,2,3,….n, j=1,2,3,….m are elements of F. If aij are real then quadratic form is called real quadratic form. Examples of Quadratic Form 1-x12+x22+ 6 x1 x2 is a quadratic form in variables x1 … Read more Quadratic Form in Linear Algebra

Classification of Second Order Partial Differential Equations

classification of second order partial differential equations

If z is a function of two independent variables x and y. Then second order partial differential equation Rr+Ss+Tt+ f(x,y,z,p,q)=0 Where r, s and t are and R, S and T are continuous functions of x and y in domain of xy-plane. Then if S2-4RT > 0 Then equation is hyperbolic S2-4RT= 0 Then equation … Read more Classification of Second Order Partial Differential Equations

Matrix Representation of a Linear Transformation

Matrix-of-a-Linear-Transformation

Matrix Representation of a Linear Transformation Suppose U and V are two vector spaces over the same field F of dimensions m and n. Let A = {α1, α2, α 3,……,α3} and B={β1, β2, β3,…….,βn} be ordered bases of U and V. If T is a linear transformation such that T:U->V and it is defined … Read more Matrix Representation of a Linear Transformation