Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
26 views
Python
Uploaded by
aakankshakelkar123123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python For Later
Download
Save
Save Python For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
26 views
Python
Uploaded by
aakankshakelkar123123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python For Later
Carousel Previous
Carousel Next
Save
Save Python For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 13
Search
Fullscreen
k 16 lim gsBitrary constant Example 2 : Investigate for what values of 2,11 the simultaneous equations xty+c26, xt2y+32=10, x+2y+dc=p have (i) no solution, (ii) a unique solution (iii) an infinite number of solutions. Solution : The matrix form of the given system of equations is J.R. INSTITUTE OF MATHEMATICS 189/35 BEHIND RAILWAY STATION, VAISH COLLEGE ROAD, ROHTAK PIN-124001 (HARYANA) E-mail us on - jrinstituterohtak@ gmail.com, balwanmudgilS4@ gmail.com Mob, 607383607, 9802177766 Page 5 x) [6 = 10|"B z] La The augmented matrix is [A: B] = Operating R,—>R,—R,, Ry-R,-R, | 6 ~|oO1 4 oOo. u-6 Operating R,—» R,-R, frag 6 ~|01 2 a4 [o 0 2-3): (@) The system will have no solution if pA: B] # AA) which is possible only if A=3 and ju #10. (ii) The system will have a unique soltition if, p[A: B] = p(A) = number of unknowns =3, which is possible only if 4 # 3 and ge is arbitrary. (iii) The system will have an infinite number of solutions if p[A : B] = p(A)
RR, RRR, 4 yaa [aca}- jon 2 036 Operating R,—+ R,—3R; friace -jo12:8 [ooo:o which isthe row echelon form ofthe matrix [4:8]. We have rank of [4:d] = the umber af oo-zeo rows in echelon form = 2. ‘Alo by the same cl mentary transformations, we et it ef a-|o12 000 rankot A=2. Since rank A= rask{A:B]=2- mumber of unknowns therefore’ We given equations me consist and will have an infinite mumber of sohtions ‘We see that the given system of equations ea) AB) =2, yo8-2k, c= i the general solution ofthe given system, where aw a tas eatinba Exercise 1 1. ( Solve t xt pyres + Bes3y-r-Dwe? , dre Sy43e=7 ‘whether the following system equations is consistent or mot dey s Uroytre6 de-ys2ee7 , rey. 2. Check the consistency ofthe following system of equations and find the solstion if itis consistent: (@ dee3y4220-7 , Pee y—dz (i xe2ys3c44e=0, 2e+3y eared, Sxsdysr, 43. Check the consistency of the following system of equations and solve if it is consistent: 9 .xe2yes drec43e3 wx Des Tyslteeds, dx yo6r=16 , Sx-Sys3e=0 iy 2x-y432=3 , 2429 Tw=5 4. For what values of «and b do the system of equations AtyeSeeQ, x42y+3aab, xe3ysacet he @ m0 solution (8) unique sohtion (a) mingely many solutions, ‘5. Investigate the values of 2 and j1 so that the equations Was3y+Sea9, Tes3y-2ee8, Qesdyedzey ne (20 solution (i) unique solution (i) an infinite umber, jy 3 = Swed, 43yH 6, For what value of 2, the equations x+y+2=1, 442) 44204, x64y-4)02= solution and solve them completely in each case 17. Show that the equations -2r+y+z=a, x-2y+r=b, x+y-2rwe unless a+b+e=0 in which case they have infinitely many arhb=he=-2. fi -2-1 8, For what value of 2, docs the system | 3. — ot () m solation (i) enique soltion ) Solve the system of equations: Ax ¥2y— specially the case when = 2. 10, Determine whether each systems is linear (a) Bendy 2yce® () exs3yen (0) 2x-3yskend Axe dy-2=2, 6x46y+A2 = Sconsidering 11, Consider each of sytem i unknowns «and (@) x-ayat () ant 3y=2 (© xtaye3 ar W2esayad desSyab For, of a does cach system have a unique soltion, and fr which paits of values, b) system have more than oae sokstion ? (a) xt yeteed (©) x42y43203 2x4 3y 462-10 Des3y48ead 3rs6y+10c=17 Se48ys19c011 13. Consider cach of the following systems in unknowns xy, @) x-2y=t (by r42ye2cet (© xtysare! x atay+3e) tare?https://www.halvorsen.blog - Mathematics in Python Hans-Petter HalvorsenMathematics in Python Python is a powerful tool for mathematical calculations Python Standard Library — math Module — statistics Module NumPy Library Contents * Python Standard Library and Basic Math Functions * NumPy Library * Statistics * Trigonometric Functions * Polynomials * Complex NumbersCalculations in Python We can use variables in a calculation like this: y(x) = 2x +4 >a=2 >b=4 y(3) =? >x=3 >y = atx +b y(x) =ax+b > print(y) (5)=? |>x=5 * > y= atx +b) > print(y) Python Standard Library * Python allows you to split your program into modules that can be reused in other Python programs. It comes with a large collection of standard modules that you can use as the basis of your programs. * The Python Standard Library consists of different modules for handling file 1/O, basic mathematics, etc. * You don't need to install the modules in the Python Standard Library separately, but you need to important them when you want to use some of these modules or some of the functions within these modules.Basic Math Functions Some basic math functions in Some basic Examples: import math as mt Python Standard Library: + math.exp(x) + math. log(x) + math.10g10(x) + math.pow(x,y) + math. sqrt(x) 7 -pythi library/math.htm! Mathematical Expressions Let's create the following mathematical expression in Python: SQey) = 3x2 + fae Hy? + ete f(2,2) =? ‘The answer becomes f(2,2) = 16.83 Mathematical Expressions Let's create a function that calculates the following mathematical expression: f(xy) = 3x? + fxF $y? + eh Python Code: import math as mt def func_ex(x,y)+ a goes Pom a2) + mt.sqrt(mt.pow(x,2) + mt.pow(y,2)) + mt.exp(mt.1og(x))Python Code: Amport math as mt ef fune_ox(x,y) + rmt.pow(x,2) + mt.aqrt (mt pow(x,2) + mt.pow(y/2)) + mt.exp(at.log (x)) return £ xe2 y=2 f= fune_ex(x,y) print (#) NumPy * The Python Standard Library consists basic Math functions, for fore advanced Math functions, you typically want to use the NumPy Library * If you don’t have Python yet and want the simplest way to get started, you can use the Anaconda Distribution - it includes Python, NumPy, and other commonly used packages for scientific computing and data science. * Oruse “pip install numpy” https://numpy.orj NumPy In this example we use both the math module in the Python Standard Library and the NumPy library: Basic NumPy Example: import numpy as np x=3 {import math as mt import numpy as np y = np.sin(x) print(y) y = mt. sin(x) print(y) ‘As you see, NumPy also have also similar functions | y = ! n(x) (ee. sim), cost), etc.) as those whois part of the | primecy) ‘math library, but they are more powerful Mathematical Expressions {Let's create the following mathematical expression in Python using NumPy: P(xy) = 3x? + LaF y? + cme F(22) =? Python Code: Previously we used math in the Python Standard Library ‘import nuapy a= mp et fune_ex(x.y)¢ £5 JeMp-Power (x2) ¢ mp.sart(np.power(x,2) + np.poverty.2)) + npvexpinp-og(x)) ial f= tune exix.y) peine(e) —— ie aremer become ye Tee |Mathematical Expressions FL.) = 3x? + xt + y% + etme) | MPOFE nemPy 08 np def func_ex(x,y): f£ = 3+np.power(x,2) + np.sqrt(np.power(x,2) + -power(y,2)) + np-exp(ap.1og (x Let's find the values of f(x, y) for ey as iene oe O
x =? p(2) =? ———— 30-32/41 88 import numpy.polynomial.polynomial as poly Poly : Given the following pl = [1, 1, -1) p2 = [2, 0, 0, 1] polynomials: pi(x) = 14x—x? = e P = poly.polymul(pl, p2) pax) = 2423 Let's find the polynomial p(x) = Px(X) + p2(x) using Python And let's find the roots of the polynomial p(x) =0 Polynomial Fitting |
You might also like
Mathematics in Python
PDF
100% (1)
Mathematics in Python
41 pages
Adv Engg Math
PDF
No ratings yet
Adv Engg Math
8 pages
math Lab
PDF
No ratings yet
math Lab
8 pages
SymPy Cheatsheet
PDF
0% (1)
SymPy Cheatsheet
1 page
Che334 (Matlab) Lecture 6
PDF
No ratings yet
Che334 (Matlab) Lecture 6
33 pages
SageMath note 1
PDF
No ratings yet
SageMath note 1
21 pages
Numerical Prev Quiz and Answers
PDF
No ratings yet
Numerical Prev Quiz and Answers
8 pages
MATLAB Basics
PDF
No ratings yet
MATLAB Basics
15 pages
Algebra: Topics
PDF
No ratings yet
Algebra: Topics
26 pages
MAT-614 Assignment I.I
PDF
No ratings yet
MAT-614 Assignment I.I
14 pages
Program For Engineering 1ST Sem
PDF
No ratings yet
Program For Engineering 1ST Sem
3 pages
Problem 3
PDF
No ratings yet
Problem 3
7 pages
CTB Chapter Lattice Introduction en
PDF
No ratings yet
CTB Chapter Lattice Introduction en
91 pages
Para Una Mejor Visualización de Ecuaciones: From Import
PDF
No ratings yet
Para Una Mejor Visualización de Ecuaciones: From Import
3 pages
Lectures 16 17 18 Linear Systems and MATLAB 2016 Handouts
PDF
No ratings yet
Lectures 16 17 18 Linear Systems and MATLAB 2016 Handouts
111 pages
Int AI TW-PW 01
PDF
No ratings yet
Int AI TW-PW 01
14 pages
Maths Lab Questions
PDF
No ratings yet
Maths Lab Questions
4 pages
math lab
PDF
No ratings yet
math lab
5 pages
A Brief Introduction To Matrices and Vectors (1998) (Jimmy Thomas Arnold)
PDF
No ratings yet
A Brief Introduction To Matrices and Vectors (1998) (Jimmy Thomas Arnold)
220 pages
Zeashan Zaidi: Lecturer Biostatistics
PDF
No ratings yet
Zeashan Zaidi: Lecturer Biostatistics
34 pages
521-528 Sympy
PDF
No ratings yet
521-528 Sympy
8 pages
Python as a Calculator — Python Numerical Methods
PDF
No ratings yet
Python as a Calculator — Python Numerical Methods
4 pages
SCILAB Solver NMOP PDF
PDF
No ratings yet
SCILAB Solver NMOP PDF
11 pages
Lecture 3 - Solving Equations, Curve Fitting, and Numerical Techniques
PDF
No ratings yet
Lecture 3 - Solving Equations, Curve Fitting, and Numerical Techniques
33 pages
Matlab Solver
PDF
No ratings yet
Matlab Solver
3 pages
1st Sem B.Tech Lab Manual_091723 lal
PDF
No ratings yet
1st Sem B.Tech Lab Manual_091723 lal
42 pages
3 Semester Physics Python Problem Sheet
PDF
No ratings yet
3 Semester Physics Python Problem Sheet
3 pages
Symbolic and Automatic Di Erentiation in Python: Some Convenient Tools
PDF
No ratings yet
Symbolic and Automatic Di Erentiation in Python: Some Convenient Tools
9 pages
Symbolic Mathematics in Python
PDF
No ratings yet
Symbolic Mathematics in Python
1 page
MATLAB Problem Set3
PDF
No ratings yet
MATLAB Problem Set3
7 pages
Systems of Equations: Discussion
PDF
No ratings yet
Systems of Equations: Discussion
6 pages
Foundation Booklet 2024
PDF
No ratings yet
Foundation Booklet 2024
128 pages
SciPyGUIA PYTHON-02
PDF
No ratings yet
SciPyGUIA PYTHON-02
1 page
Matlab 4
PDF
No ratings yet
Matlab 4
23 pages
scipy - Jupyter Notebook
PDF
No ratings yet
scipy - Jupyter Notebook
8 pages
hw1
PDF
No ratings yet
hw1
4 pages
cam_6612_projectFile
PDF
No ratings yet
cam_6612_projectFile
69 pages
Unit-4
PDF
No ratings yet
Unit-4
50 pages
Week 3
PDF
No ratings yet
Week 3
27 pages
CHE555 Procedure Lab 2
PDF
No ratings yet
CHE555 Procedure Lab 2
9 pages
Lecture_TWP_Python_A03_1a_General_Features_of_Python
PDF
No ratings yet
Lecture_TWP_Python_A03_1a_General_Features_of_Python
37 pages
Scipy Cheat Sheet Python For Data Science: Linear Algebra
PDF
No ratings yet
Scipy Cheat Sheet Python For Data Science: Linear Algebra
1 page
Scipy Cheat Sheet Python For Data Science: Linear Algebra
PDF
No ratings yet
Scipy Cheat Sheet Python For Data Science: Linear Algebra
1 page
DSAI_Admission_level_check_2025-26_M1
PDF
No ratings yet
DSAI_Admission_level_check_2025-26_M1
6 pages
Lab Mariano2023 en
PDF
No ratings yet
Lab Mariano2023 en
64 pages
11 Notes Modules
PDF
No ratings yet
11 Notes Modules
18 pages
SciPy Cheat Sheet
PDF
No ratings yet
SciPy Cheat Sheet
1 page
Group Assignment SageMath2023
PDF
No ratings yet
Group Assignment SageMath2023
11 pages
Engineering Mathematics II Model-Practice Question - WWW - Arjun00.com - NP
PDF
No ratings yet
Engineering Mathematics II Model-Practice Question - WWW - Arjun00.com - NP
14 pages
Matlab Review
PDF
No ratings yet
Matlab Review
12 pages
Exponents and Logarithms EC Handout 02
PDF
No ratings yet
Exponents and Logarithms EC Handout 02
5 pages
Mathematics Lab
PDF
No ratings yet
Mathematics Lab
6 pages
Lineng PDF
PDF
No ratings yet
Lineng PDF
311 pages
LINENG
PDF
No ratings yet
LINENG
311 pages
Main
PDF
No ratings yet
Main
195 pages
1 11zon Merged
PDF
No ratings yet
1 11zon Merged
30 pages
Numerical Methods Using Python: (MCSC-202)
PDF
No ratings yet
Numerical Methods Using Python: (MCSC-202)
29 pages
MATLAB Examples - Mathematics
PDF
No ratings yet
MATLAB Examples - Mathematics
53 pages
Intermediate Algebra Notes Summary
PDF
No ratings yet
Intermediate Algebra Notes Summary
26 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Mathematics in Python
PDF
Mathematics in Python
Adv Engg Math
PDF
Adv Engg Math
math Lab
PDF
math Lab
SymPy Cheatsheet
PDF
SymPy Cheatsheet
Che334 (Matlab) Lecture 6
PDF
Che334 (Matlab) Lecture 6
SageMath note 1
PDF
SageMath note 1
Numerical Prev Quiz and Answers
PDF
Numerical Prev Quiz and Answers
MATLAB Basics
PDF
MATLAB Basics
Algebra: Topics
PDF
Algebra: Topics
MAT-614 Assignment I.I
PDF
MAT-614 Assignment I.I
Program For Engineering 1ST Sem
PDF
Program For Engineering 1ST Sem
Problem 3
PDF
Problem 3
CTB Chapter Lattice Introduction en
PDF
CTB Chapter Lattice Introduction en
Para Una Mejor Visualización de Ecuaciones: From Import
PDF
Para Una Mejor Visualización de Ecuaciones: From Import
Lectures 16 17 18 Linear Systems and MATLAB 2016 Handouts
PDF
Lectures 16 17 18 Linear Systems and MATLAB 2016 Handouts
Int AI TW-PW 01
PDF
Int AI TW-PW 01
Maths Lab Questions
PDF
Maths Lab Questions
math lab
PDF
math lab
A Brief Introduction To Matrices and Vectors (1998) (Jimmy Thomas Arnold)
PDF
A Brief Introduction To Matrices and Vectors (1998) (Jimmy Thomas Arnold)
Zeashan Zaidi: Lecturer Biostatistics
PDF
Zeashan Zaidi: Lecturer Biostatistics
521-528 Sympy
PDF
521-528 Sympy
Python as a Calculator — Python Numerical Methods
PDF
Python as a Calculator — Python Numerical Methods
SCILAB Solver NMOP PDF
PDF
SCILAB Solver NMOP PDF
Lecture 3 - Solving Equations, Curve Fitting, and Numerical Techniques
PDF
Lecture 3 - Solving Equations, Curve Fitting, and Numerical Techniques
Matlab Solver
PDF
Matlab Solver
1st Sem B.Tech Lab Manual_091723 lal
PDF
1st Sem B.Tech Lab Manual_091723 lal
3 Semester Physics Python Problem Sheet
PDF
3 Semester Physics Python Problem Sheet
Symbolic and Automatic Di Erentiation in Python: Some Convenient Tools
PDF
Symbolic and Automatic Di Erentiation in Python: Some Convenient Tools
Symbolic Mathematics in Python
PDF
Symbolic Mathematics in Python
MATLAB Problem Set3
PDF
MATLAB Problem Set3
Systems of Equations: Discussion
PDF
Systems of Equations: Discussion
Foundation Booklet 2024
PDF
Foundation Booklet 2024
SciPyGUIA PYTHON-02
PDF
SciPyGUIA PYTHON-02
Matlab 4
PDF
Matlab 4
scipy - Jupyter Notebook
PDF
scipy - Jupyter Notebook
hw1
PDF
hw1
cam_6612_projectFile
PDF
cam_6612_projectFile
Unit-4
PDF
Unit-4
Week 3
PDF
Week 3
CHE555 Procedure Lab 2
PDF
CHE555 Procedure Lab 2
Lecture_TWP_Python_A03_1a_General_Features_of_Python
PDF
Lecture_TWP_Python_A03_1a_General_Features_of_Python
Scipy Cheat Sheet Python For Data Science: Linear Algebra
PDF
Scipy Cheat Sheet Python For Data Science: Linear Algebra
Scipy Cheat Sheet Python For Data Science: Linear Algebra
PDF
Scipy Cheat Sheet Python For Data Science: Linear Algebra
DSAI_Admission_level_check_2025-26_M1
PDF
DSAI_Admission_level_check_2025-26_M1
Lab Mariano2023 en
PDF
Lab Mariano2023 en
11 Notes Modules
PDF
11 Notes Modules
SciPy Cheat Sheet
PDF
SciPy Cheat Sheet
Group Assignment SageMath2023
PDF
Group Assignment SageMath2023
Engineering Mathematics II Model-Practice Question - WWW - Arjun00.com - NP
PDF
Engineering Mathematics II Model-Practice Question - WWW - Arjun00.com - NP
Matlab Review
PDF
Matlab Review
Exponents and Logarithms EC Handout 02
PDF
Exponents and Logarithms EC Handout 02
Mathematics Lab
PDF
Mathematics Lab
Lineng PDF
PDF
Lineng PDF
LINENG
PDF
LINENG
Main
PDF
Main
1 11zon Merged
PDF
1 11zon Merged
Numerical Methods Using Python: (MCSC-202)
PDF
Numerical Methods Using Python: (MCSC-202)
MATLAB Examples - Mathematics
PDF
MATLAB Examples - Mathematics
Intermediate Algebra Notes Summary
PDF
Intermediate Algebra Notes Summary