0% found this document useful (0 votes)
28 views43 pages

Calculus Lab Manual for Engineers

This document is a lab manual for a Calculus course that provides instructions for students to complete various programming exercises using MATLAB. It includes 5 sections that involve plotting functions, finding maxima and minima, calculating limits, performing vector differentiation, and evaluating vector line integrals. Students are asked to write MATLAB programs to generate outputs for over 30 different calculus problems and concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views43 pages

Calculus Lab Manual for Engineers

This document is a lab manual for a Calculus course that provides instructions for students to complete various programming exercises using MATLAB. It includes 5 sections that involve plotting functions, finding maxima and minima, calculating limits, performing vector differentiation, and evaluating vector line integrals. Students are asked to write MATLAB programs to generate outputs for over 30 different calculus problems and concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

LAB MANUAL

MAT1001
CALCULUS FOR ENGINEERS
Submitted by
Mahek Solanki
Reg. Number: 23BCE7446
To
Dr. Dibyendu Sekhar Mandal
Slot: L37+L48
Venue: 304 AB-1

VIT-AP UNIVERSITY
ANDHRA PRADESH
INDIA
1. Plot r^2 = 2 sin 5t 0 <= t <= 2pi using fill command

Program:

Output:
2. Plot y=sin(x)/x -3pi <= x <= 3pi using area command

Program:

Output:
3. Histogram of 50 randomly distributed numbers between 0 and 1.

Program:

Output:
4) z= -½(x^2) + xy + y^2 where |x| less than equal to 5, |y| less than
equal to 5 using contour function.

Program:

Output:
5) z = x^2 + y^2 - 5sin(xy) where |x| less than equal to 2, |y| less
than equal to 2, using quiver function.

Program:

Output:
3D PLOTS:

1. Plot a parametric space curve x(t) = t, y(t) = t^2, z(t) = t^3 where 0
less than equal to t less than equal to 1 using plot3 function.

Program:

Output:
2. Plot of four filled polygons with three vertices each

Program:

Output:
3. z = cosx. Cos y. e^(-root(x^2+y^2)/4), |x| less than equal to 5, |y|
less than equal to 5, using surf function where u= -5:.2:5, [X, Y]
=mesh grid (u, u).

Program:

Output:
[Link] → 3D surface plot with specified light source.

Program:

Output:
5) z=-5/(1+x^2+y^2), |x| less than equal to 3, |y| less than equal to 3
using function mesh.

Program:

Output:
6)A unit sphere centered at origin and generated by three matrices
x, y and z of size 21 * 21 each

Program:

Output:
7) A cylinder generated by r = sin(3*pi*z) + 2 where 0 less than equal
to z less than equal to 1, and 0 less than equal to theta less than
equal to 2pi.

Program:

Output:
Maxima Minima 1st page
1.

Program:

Output:
2.

Program:

Output:
3.

Program:
Output:
MAX MIN 2ND PAGE

1.

Program:

Output:
2.

Program:
Output:
3.

Program:
Output:
4.

Program and Output


5.
Program and Output
Limits

1.

Program and output

2.

Program and output:


3.

Program and Output

4.

Program and Output


5.

Program and Output


6.

Program and Output


7.

Program and Output

8.

Program and Output


Limit 2nd page

1.

Program and Output

2.

Program and Output


3)

Program and Output


4)

Program and Output


5)

Program and Output

Vector Differentiation

1.

Program And Output


2
Program and Output

3)

Program and Output


4)

Program and Output


5)

Program and Output


Vector line Integral

1.

Program and Output


2.

Program and Output


3.

Program Output

Common questions

Powered by AI

A histogram visualizes how 50 randomly distributed numbers are spread across the interval between 0 and 1, providing insight into data distribution patterns. In engineering contexts, this can help assess the randomness and uniformity of data sets and identify trends or anomalies. Effective interpretation of these plots enables engineers to make informed decisions based on probabilistic data characteristics.

The area command fills the space between the function y=sin(x)/x and the x-axis over -3π ≤ x ≤ 3π, highlighting oscillation patterns and signal decay toward zero as x values move away from zero. This visualization can provide insights into the behavior of the sinc function, often encountered in signal processing, by emphasizing amplitude variation and supporting the analysis of its band-limited properties.

The mesh function offers a grid-like representation of the surface z=-5/(1+x^2+y^2) over the domain |x| ≤ 3 and |y| ≤ 3. Its advantages include providing a clear depiction of the surface lattice, making it easy to observe changes in surface height due to x and y variation. This method effectively conveys function behavior across the specified domain while improving perception of height differences and surface topology.

Plotting a unit sphere using three 21x21 matrices facilitates understanding spatial relationships and symmetry, allowing for complex geometrical modeling and analysis. This method benefits computational contexts by providing a detailed structural framework for evaluating sphere-related properties and enhancing visualization accuracy.

The contour function can graphically represent the function z= -½(x^2) + xy + y^2 by creating level curves where z takes constant values over the specified domain |x| ≤ 5 and |y| ≤ 5. By evaluating z for various x and y values, a two-dimensional plot with lines indicating points where the function maintains the same value is produced, effectively visualizing the function's behavior in that region.

Generating a cylinder with r = sin(3πz) + 2 allows for examining periodicity and amplitude variation in cylindrical coordinates over 0 ≤ z ≤ 1 and 0 ≤ θ ≤ 2π. This application combines trigonometric and geometric principles to study structural morphologies and applies to various engineering scenarios where sinusoidal variations in radii are relevant.

Utilizing the surfl function with defined lighting enhances depth perception and structural understanding of 3D surfaces by simulating shadows and highlights, thereby improving visualization of continuous surface features and spatial characteristics of the function's topology.

The plot3 function generates a 3D plot of a parametric curve defined by the functions x(t) = t, y(t) = t^2, and z(t) = t^3 over the interval t = 0 to t = 1. This process involves calculating the coordinates for each parameter t to form a smooth curve in three-dimensional space. This technique is important for visualizing relationships among the variables and understanding the spatial dynamics of the system or phenomenon being modeled.

The quiver function represents vector fields by plotting arrows that indicate the direction and magnitude of z = x^2 + y^2 - 5sin(xy) over |x| ≤ 2 and |y| ≤ 2. This method visualizes derivative trends and directional features within the domain, clarifying spatial gradients and oscillatory behavior contributing to understanding field dynamics.

Using the fill command for plotting r^2 = 2 sin 5t helps to emphasize regions enclosed by the radial plot within the interval 0 ≤ t ≤ 2π. This approach not only displays the outline of the plot but also highlights the area encompassed by it, allowing for a more visually appealing and easy-to-interpret representation of the plotted data.

You might also like