0% found this document useful (0 votes)
114 views1 page

Derivative Lab Report

This document describes plotting the graph of a differential equation. It provides the methodology of inputting similar code to a previous differential activity, but equating the symbolic result to a variable z to call in the plot command. The script section shows the symbolic differentiation of a 5th order polynomial function f, substituting the result y into x to get the numeric values z, and plotting x versus z to graph the differential equation.

Uploaded by

Drin Bismonte
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views1 page

Derivative Lab Report

This document describes plotting the graph of a differential equation. It provides the methodology of inputting similar code to a previous differential activity, but equating the symbolic result to a variable z to call in the plot command. The script section shows the symbolic differentiation of a 5th order polynomial function f, substituting the result y into x to get the numeric values z, and plotting x versus z to graph the differential equation.

Uploaded by

Drin Bismonte
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

INTRODUCTION

This activity aims to get the plot the graph of the differential activity. You might ask, why is it necessary
to plot equations? The reason is to better understand what the values represent or to prove that the
equation is correct.

METHODOLOGY
Start by inputting mostly the same codes as the differential activity. The only difference this time is I
equated vpa to z because this time you will have to call the vpa and the linspace in the plot command.

SCRIPT
syms x
f=0.2+25*x-200*x^2+675*x^3-900*x^4+400*x^5;
x=linspace(0,0.8,9)
y=diff(f)
z=vpa(subs(y,x))
plot(x,z)
RESULTS

You might also like