0% found this document useful (0 votes)
14 views2 pages

Pre Lab

This document contains a MATLAB code that performs algebraic operations on symbolic variables to determine if an equation is linear or nonlinear. It defines variables a, b, x, and y and expressions c, d, f, g, h, i, and j in terms of those variables. It then substitutes values into the expressions and compares the results to determine that the equation in (1) is nonlinear since the results 1 and 2 are not equal.

Uploaded by

Arial96
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)
14 views2 pages

Pre Lab

This document contains a MATLAB code that performs algebraic operations on symbolic variables to determine if an equation is linear or nonlinear. It defines variables a, b, x, and y and expressions c, d, f, g, h, i, and j in terms of those variables. It then substitutes values into the expressions and compares the results to determine that the equation in (1) is nonlinear since the results 1 and 2 are not equal.

Uploaded by

Arial96
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/ 2

Pre- Lab

TASK 1

TASK 2

>> syms a b x y

>> c=a*x + b*y;

>> d=(c)^2;

>> f=a*x^2 + b*y^2;


>> g=subs(f, x, 2)

g = b*y^2 + 4*a

subs(g, y,2)

ans =

4*a + 4*b (1)

>> h=(a*x + b*y)^2;

>> i=subs(h,x,2)

i=

(2*a + b*y)^2

>> j=subs(i,y,2)

j=

(2*a + 2*b)^2 (1)

1 is not equal to 2 so non linear

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy