MathsEdu

Mathematics, Computer Science & Education Portal

Welcome to MathsEdu

Mathematics, Computer Science & Modern Technology

Explore syllabus, notes, question papers, practical programs, mathematical tools, Data Science, Artificial Intelligence and career resources.

Advertisement

Quick Access

Important educational resources available on MathsEdu.

Popular Courses

Explore major academic subjects and career-oriented resources.

B.Sc Mathematics

University syllabus, mathematics resources, notes and academic material.

Explore →

B.Sc Computer Science

Syllabus, question papers, practicals and programming resources.

Explore →

Data Science

Data analysis, statistics, visualization and modern data science concepts.

Explore →

Generative AI

Generative AI, AI tools and emerging technology resources.

Explore →

Study Material

Notes and learning resources for students.

FYBSc Mathematics

Semester-wise mathematics notes and study material.

View Material →
📐

Mathematics Notes

Mathematics notes and academic resources.

View Material →
💻

Software Engineering

Software engineering notes and study resources.

View Material →
📡

Digital Communication

Digital communication and networking notes.

View Material →

Electronics

Electronics notes and educational resources.

View Material →
📘

B.Sc Computer Science Syllabus

FYBSc Computer Science syllabus and curriculum.

View Material →
📚

Complete Syllabus

B.Sc, M.Sc, B.Com and M.Com syllabus resources.

View Syllabus →
🧑‍💻

Python Practical Book

Python practical material for first year students.

View Practical →

Question Papers

Previous examination papers and competitive examination resources.

📄

B.Sc Computer Science

View Papers →
📄

BCA Question Papers

View Papers →
📄

M.Sc Question Papers

View Papers →
🎓

CDS Question Papers

View Papers →

Mathematical Tools

Online mathematical calculators and transformation tools.

🔢

Matrix Calculator

Perform matrix calculations online.

Open Tool →
λ

Eigenvalue Calculator

Calculate eigenvalues and eigenvectors.

Open Tool →
|A|

Determinant Calculator

Calculate determinant of matrices.

Open Tool →

2-D Transformation

Explore two-dimensional transformations.

Open Tool →
25+
Educational Resources
8+
Question Paper Resources
10+
Mathematical Resources
24×7
Online Access

Career & Technology

Explore career opportunities and emerging technologies.

🎯

Career after B.Sc Computer Science

Explore career options after completing B.Sc Computer Science.

Read More →
🏆

Mathematics Exams in India

Information about various mathematics examinations.

Read More →
💡

Project Ideas

Computer science project ideas and topics for students.

Explore Ideas →
🌐

NEP 2020

Understand how NEP 2020 is changing higher education.

Read More →

AI, Data Science & Modern Technology

Learn about emerging technologies and future career skills.

📊

Data Science & Data Analytics

Learn about data science, data analytics and career opportunities.

Explore →
🤖

Generative AI & AI Tools

Explore modern generative AI tools and applications.

Explore →
🐍

Python Programming

Python practical programs and learning resources.

Explore →
💻

Computer Science Projects

Project topics and ideas for computer science students.

Explore →

Join MathsEdu on Telegram

Get new educational resources, syllabus updates, question papers and study material.

Join Telegram →

Latest Articles

Latest posts published on MathsEdu.

Wednesday, 5 July 2023

Mathematics Python practical SYBSC (computer science) Semester-III

Mathematics python practical SYBSC (computer science) semester-III
Based basic arithmetic operations and Numerical techniques.
Here Practical questions with there solutions (code) are provided.
which is useful for basic python learner students and Students from SPPU at Second year of computer science course.
Practicals:

Practical 1: Introduction to Python, Python Data Types-I (Unit 1)


Q.1. Write a python code to evaluate sin, cos at 3.14.
2. Write a python function that calculate square of a given number.
2A. Write a python function that calculate Multiplication of given number.
3. Write a python function that calculates sum and products of three numbers.
4. Write a python function that calculates area and circumference of a circle if radius is given.
5. Write a python function that calculates roots of the quadratic equation ax^2 + bx + c = 0.
6. Find the value of the following expression if x and y are true and z is false, by using python.

Practical 2: Python Data Types- II (Unit 2)


1. Given a strings s1 = “Hello” and s2 = “Hi”. Show the results of the following string expressions.
2. The two lists are given: l1= [1, 2, 3, 4, 5] and l2=[a, b, c , d , e] Show the results of the following string expressions.
3. Two tuples are given: t1= ('p','u','n','e')and t2= ('m','u','m','b','a','i'). Show the r esults of the following tuple expressions.
4. Write a python program to print vowels of user entered sting.
5. Write a python program to count number of characters of string.
6. Write a python program to reverse the tuple.
7. Write a python program using tuple to swap the values of two variables.
8. Write a python program to add ‘ing’ at the end of a given sting.
9. Write a python program to change a given string to a new string where first and last characters have been exchanged.
10. Write a python program to get the largest number from a list.

Practical 3: Control statements in Python-I (Unit 3- 3.1, 3.2)


1.Write a function that prints weather number is divisible by another number.
2. Write a function that test weather number is divisible by 3, 5 and 7.
3. Write a function that gives given number is positive, negative or zero.
4. Print Fibonacci numbers less than 1000.
5. Find sum of first 98 natural numbers.
6. Find number of integer between 0 and 1000, which are multiple of 11.
7. Define Euler’s phi function in python and hence find phi (120).

Practical 4: Control statements in Python-II (Unit 3- 3.3)


1. Using type() find type of
i) 123
ii) 15.6
iii) Pune
iv) [1,2,3]
v) (2,4,6)
2. Using id() Find id of
i) 123

ii) 15.6
iii) Pune
iv) [1,2,3] .
3. Convert:
i) 30 to float
ii) 123.32 to int
iii) 3.14159 to string
4. Using math.pow find 2^10.
5. Using user defined function (name it as ‘twice’) print your name twice.
6. Using user defined function in above question no.5 print word Python 8 times.

Practical 5: Application : Matrices (Unit 4 – 4.1-4.3)


1. Using sympy module declare the vectors u =(1 2 3) v =( -7 0 3)
Find
i. u+v
ii. u-v
iii. 6u
iv. 5v
v. 6u + 5v
2. Using sympy module declare any 3x3 matrix B and find
i. type(B)
ii. eigenvalues of B
3. Declare following matrices using sympy module
i. 3x5 zero matrix
ii. diagonal matrix (1,2,4)
iii. 5x4 one’s matrix.
4. Using sympy module declare any two 3x3 matrices A and B.
Find i. D1+D2
ii. D1-D2
iii. D1*D1
iv. D1*D2
v. D1**4
5. Using sympy module declare any two 3x3 matrices A and B.
Find i. A^(-1)
ii. B^(-1)
6. Using sympy module declare any 3x3 matrix A. print
i. first row
ii. third column
iii. first and second column
7. Using sympy module declare any 4x3 matrix A.
i. delete second column
ii. delete third column
iii. insert fourth row as (1, 1)

Practical 6: Application : Determinants, system of Linear Equations (Unit 4- 4.4, 4.5)


1. Using sympy module declare any 3x4 matrix and find transpose.
2. Using sympy module declare any 3x3 matrix A and find determinant of A.
3. Using sympy module declare any 3x3 matrix A and find reduced row echelon form of A.
4. Using sympy module declare any two 3x3 matrices A and find nullspace of A.
5. Using sympy module declare any two 3x3 matrices A and find columnspace of A.
6. Using sympy module declare any two 4x4 matrices A and find rank of A.
7. Using sympy module declare any two 4x4 matrices A and find nullspace, columnspace and rank of A.





Practical 7: Application : System of equations (Unit 4- 4.5)


1. Using sympy module and linslove() command, solve the following system of equations.
2. Using sympy module and gauss-Jordan method, solve the following system
x + 2y + 3z = 3,
4x + 5y + 6z = 6,
7x + 8y + 10z = 9 3. Using sympy module and LU decomposition, solve the following system
6x + 18y + 3z = 3,
42 + 12y + z = 19,
4x + 15y + 3z = 0
4. Solve the following system by gauss-elimination method.
5. Solve the following system by LU decomposition method.
6. Solve the following system by gauss-elimination method ( i,e using linsolve() command) .

Practical 8: Application : Eigenvalues, Eigenvectors (Unit 4 – 4.6)


1. Using sympy module find eigenvalues of the following matrix.
2. Using sympy module declare any 4x4 matrix and find eigenvalues of that matrix.
3. Using sympy module find eigenvalues of the following matrix.
4. Using sympy module find eigenvectors of the following matrix.
5. Using sympy module find eigenvectors of the following matrix.
6. Using sympy module find eigenvectors of the following matrix.

Practical 9: Application : Eigenvalues, Eigenvectors (Unit 4 – 4.6)


1. Using sympy module decide if following the matrix is diagonalizable or not.
2. Using sympy module decide if following the matrix is diagonalizable or not.
If yes find matrix P and D (where P^(-1)AP = D).
3. Using sympy module find matrix P and D.
4. Using sympy module find find matrix P and D.
5. Using python decide whether matrix is diagonalizable, if yes find matrix P and D.
6. Using python find matrix P and D.

Practical 10: Application : Roots of equations (Unit 5 – 5.1)


1. Using newton-Raphson method find root of equation f(x) = x^(3) − 5x + 1 with x0 = 0. 5 correct to three decimal places(error e=0.00001).
2. Using newton-Raphson method find root of equation xlog10(x) = 12. 34 with x0 = 10.
3. Using newton-Raphson method find approximate value of √5 correct to ten decimal places.
4. Using false-position method find approximate root of f(x) = xex − cos (x) in interval (0, 1).
5. Using false-position method find approximate root of f(x) = tan(x) − 2x in interval (1.1, 1.2).
6. Using false-position method find approximate value of √5 correct to ten decimal places.

Practical 11: Application : Numerical integration (Unit 5 – 5.2, 5.3)


Practical 12: Application : Numerical integration (Unit 5 – 5.4)






MTC- 243 Python Programming Language -II (mathematics) practical








Practical No. and name Questions Solutions
Practical 1: Graph Plotting (Unit 1 – 1.1 – 1.3)
Practical 2: Graph Plotting (Unit 1 – 1.4 – 1.7)
Practical 3: Application to Computational Geometry (Unit 2 – 2.1)
Practical 4: Application to Computational Geometry (Unit 2 – 2.2)
Practical 5: Application to Computational Geometry (Unit 2 – 2.3)
Practical 6: Study of Graphical aspects of Two dimensional transformation matrix using matplotlib
Practical 7: Study of Graphical aspects of Three dimensional transformation matrix using matplotlib
Practical 8: Study of Graphical aspects of Three dimensional transformation matrix using matplotlib
Practical 9: Study of effect of concatenation of Two dimensional and Three dimensional transformations
Practical 10: Generation of Bezier curve using given control points
Practical 11: Study of Operational Research in Python (Unit 3.1)
Practical 12: Study of Operational Research in Python (Unit 3.2)






S.Y.BSc(Comp.Sci.) Python practical 01
Title: 2D Graphs
1) Write a Python program to plot 2D graph of the functions f(x) = x^2 and g(x)= x^3 in [−1, 1].
2) Write a Python program to plot 2D graph of the functions f(x) = log10(x) in the interval [0, 5].
3) Using Python plot the graph of function f(x) = sin(x) on the interval [0, 2π].
4) Using Python plot the graph of function f(x) = sin^(-1)(x) on the interval [−1,1].
5) Using Python, plot the graph of function f(x) = sin(x) − e^x + 3x − log10(x) on the Interval [0, π].
6) Plot the graph of f(x) = x^5 in [0, 5] with red dashed line with circle markers.
7) Plot the graphs of sin x, cos x, e^x and x^2 in [0, 5] in one figure with (2 × 2) subplots.
8) Write a python program to Plot 2D X-axis and Y-axis black color and in the same diagram plot green triangle with vertices [5, 4], [7, 4], [6, 6].
9) Plot the graph of y = e ^((−x)^2) in [−5, 5] with red dashed-points line with Upward Pointing triangle.

SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 01. solution.

SYBSc (comp. sci.) Python Practical -1








PYTHON Practical no-2 SYBSC (Comp. Sci)















For Solution Click Here




SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 02. solution.





To download answers click here
























SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 03. solution.






















Python Practical No. 4 SYBSC ( Comp. Sci.)















SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 11. solution.





Practical no4 Solution










4fvv Python Practical no. 5 Sybsc (comp.sci)









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 05. solution.









SYBSC python practical no.05














Python practical No. 06














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 06. solution.









python practical no. 6














Python practical no. 07














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics)




practical No. 07. solution.














Python practical no. 07














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics)




practical No. 07. solution.














SYBSC Python practical no. 08










SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 08. solution.









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 09. solution.














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 10. solution.









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 10. solution.









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 11. solution.




These practical based on linear programming problems. Here we solve linear programming problems using python. It is very easy and interesting find the solution of LPP by python programming. In this practical we solve the 6 questions of LPP by using python programming. Which is very useful for mathematics students to solve LPP.
Python programming save the time and get good results.




















Some questions for practice.





. 1) Minimize: Z = 6x + 7y
4x + y ≥ 40,
2x + 3y ≥ 90,
x, y ≥ 0
2) Maximize Z = 2x + 3y
x + y ≤ 30,
x ≤ 20, y ≤ 12
x, y ≥ 0





Practical No. 12


Practical No. 12 Solution














S.Y.BSc(Comp.Sci.) Python practical 01
Title: 2D Graphs
1) Write a Python program to plot 2D graph of the functions f(x) = x^2 and g(x)= x^3 in [−1, 1].
2) Write a Python program to plot 2D graph of the functions f(x) = log10(x) in the interval [0, 5].
3) Using Python plot the graph of function f(x) = sin(x) on the interval [0, 2π].
4) Using Python plot the graph of function f(x) = sin^(-1)(x) on the interval [−1,1].
5) Using Python, plot the graph of function f(x) = sin(x) − e^x + 3x − log10(x) on the Interval [0, π].
6) Plot the graph of f(x) = x^5 in [0, 5] with red dashed line with circle markers.
7) Plot the graphs of sin x, cos x, e^x and x^2 in [0, 5] in one figure with (2 × 2) subplots.
8) Write a python program to Plot 2D X-axis and Y-axis black color and in the same diagram plot green triangle with vertices [5, 4], [7, 4], [6, 6].
9) Plot the graph of y = e ^((−x)^2) in [−5, 5] with red dashed-points line with Upward Pointing triangle.

SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 01. solution.

SYBSc (comp. sci.) Python Practical -1








PYTHON Practical no-2 SYBSC (Comp. Sci)















For Solution Click Here




SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 02. solution.





To download answers click here
























SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 03. solution.






















Python Practical No. 4 SYBSC ( Comp. Sci.)















SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 11. solution.





Practical no4 Solution










4fvv Python Practical no. 5 Sybsc (comp.sci)









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 05. solution.









SYBSC python practical no.05














Python practical No. 06














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 06. solution.









python practical no. 6














Python practical no. 07














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics)




practical No. 07. solution.














Python practical no. 07














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics)




practical No. 07. solution.














SYBSC Python practical no. 08










SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 08. solution.









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 09. solution.














SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 10. solution.









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 10. solution.









SYBSc(C S) Sem - IV MTC- 243 Python Programming Language -II (mathematics) practical No. 11. solution.




These practical based on linear programming problems. Here we solve linear programming problems using python. It is very easy and interesting find the solution of LPP by python programming. In this practical we solve the 6 questions of LPP by using python programming. Which is very useful for mathematics students to solve LPP.
Python programming save the time and get good results.




















Some questions for practice.





. 1) Minimize: Z = 6x + 7y
4x + y ≥ 40,
2x + 3y ≥ 90,
x, y ≥ 0
2) Maximize Z = 2x + 3y
x + y ≤ 30,
x ≤ 20, y ≤ 12
x, y ≥ 0





Practical No. 12


Practical No. 12 Solution
























Use following link for previous year question papers of BCA









Use following link for previous year question papers of B.Sc (Computer Science)









FYBSc(Cyber and Digital Science) question paper









Notes of Digital Communication and Networking