Posts

Python For Engineers CST 445 KTU Open Elective Notes S7 - Dr Binu V P

About Me About the Course and Syllabus Model Question Paper Python For Engineers CST 445 University Question Paper-Python For Engineers CST 445 -Dec 2022 University Question Paper-Python For Engineers CST 445-May 2023  University Question Paper-Python For Engineers CST 445 - Dec 2023  and Answer Scheme University Question Paper-Python For Engineers CST 445-Nov2024   and Answer Scheme University Question Paper-Python For Engineers CST 445- May 2024  and Answer Scheme University Question Paper -Python For Engineers CST 445 - Nov 2025 and Answer Scheme University Question Paper -Python For Engineers CST 445 - May 2026 and Answer Scheme Assignment-7 Module 1:Basics of Python  1.Introduction to Python 2.Running Python Program- IDLE,Interactive Shell, Jupyter notebook 3.Identifiers, variables and keywords 4.Basic Python data types- numbers and strings, type conversion 5.Operators 6.Operator precedence and expression evaluation 7.Input and output- input() and print()...

Assignment - 7

Learn Plotting - All univeristy Questions Submit before 10pm on 13th sep 2026. 1.Plot the function   y = 3x^2 for −1 ≤ x ≤ 3   as a continuous line. Include enough points so thatthe curve you plot appears smooth. Label the axes x and y 2.Plot the functions sin x and cos x vs x on the same plot with x going from −π to π. Make sure the limits of the x-axis do not extend beyond the limits of the data. Plot sin x in the color orange and cos x in the color green and include a legend to label the two curves. Place the legend within the plot, but such that it does not cover either of the sine or cosine traces. Draw thin gray lines behind the curves, one horizontal at y = 0 and the other vertical at x = 0 3.Explain semi-log plots and log-log plots along with the functions used in creating such plots. 4.Write the specific purpose of functions used in plotting: i) plot( ) ii) legend( ) iii. title( ) 5.Create an array in the range 1 to 20 with values 1.25 apart. Another array contains th...

Model Question Paper CST 445 KTU Python For Engineers

  APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY SEVENTH SEMESTER B.TECH DEGREE EXAMINATION, MONTH & YEAR Course Code: CST445                                              Course name : PYTHON FOR ENGINEERS Max Marks: 100                                                                                                               Duration: 3 Hours PART-A (Answer All Questions. Each question carries 3 marks) 1. Explain the basic data types available in Python, with examples. 2. Write a Python program to reverse a number and also ...

University Question Papers and Scheme CST 445 Python For Engineers

 

Syllabus CST 445 Python For Engineers

CST445 PYTHON FOR ENGINEERS CATEGORY  L T P CREDIT      YEAR OF INTRODUCTION OEC                  2  1 0   3                     2019 Preamble: The objective of the course is to provide learners an insight into Python programming in a scientific computation context and develop programming skills to solve engineering problems. It covers programming environment, important instructions, data representations, intermediate level features, Object Oriented Programming and file data processing of Python. This course lays the foundation to scientific computing, develop web applications, Machine Learning, and Artificial Intelligence-based applications and tools, Data Science and Data Visualization applications.   Prerequisite: NIL Note : Students who have successfully completed CST 283 - Python for Machine Learning (...

More advanced graphical output

Image
 Here, we will learn a more advanced syntax that harnesses the full power of matplotlib. It gives the user more options and greater control. import numpy as np import matplotlib.pyplot as plt # Define the sinc function, with output for x=0 # defined as a special case to avoid division by zero def s(x):      a = np.where(x == 0., 1., np.sin(x)/x)      return a x=np.arange(0., 10., 0.1) y=np.exp(x) t=np.linspace(-15., 15., 150) z=s(t) # create a figure window fig = plt.figure(figsize=(9, 7)) # subplot: linear plot of exponential ax1 = fig.add_subplot(2, 2, 1) ax1.plot(x, y, 'C0') ax1.set_xlabel('time (ms)') ax1.set_ylabel('distance (mm)') ax1.set_title('exponential') #subplot: semi-log plot of exponential ax2 = fig.add_subplot(2, 2, 2) ax2.plot(x, y, 'C2') ax2.set_yscale('log') # ax2.semilogy(x, y, 'C2') # same as 2 previous lines ax2.set_xlabel('time (ms)') ax2.set_ylabel('distance (mm)') ax2.set_title('exponent...

Mathematics and Greek symbols

Image
matplotlib can display mathematical formulas, Greek letters, and mathematical symbols using a math rendering module known as mathtext. The mathtext module parses a subset of Donald Knuth’s TEX mathematical typesetting language, and provides basic mathematical typesetting without any software other than matplotlib. If, in addition, you have TEX (and/or LATEX) as a separate standalone program (such as MacTex [TexShop] or MiKTeX), then you can do even more. In what follows we will assume that you are using the native matplotlib mathtext, but will make a few comments applicable to those who have a separate installation of LATEX. matplotlib’s mathtext can display Greek letters and mathematical symbols using the syntax of TEX. If you are familiar with TEX or LATEX, you have hardly anything to learn. Even if you are not familiar with them, the syntax is simple enough that you can employ it in most cases without too much effort.You designate text as mathtext by placing dollar signs (dollar) ...