Question
Demo of a Few Simple MathCad Operations type your name and ID here b ;= 3 Type: a:7 a := 7 assign constants to variables
Demo of a Few Simple MathCad Operations type your name and ID here b ;= 3 Type: a:7 a := 7 assign constants to variables using the := operator c; = a + b assignment using variables on the RHS d := 328 c assignment using constants and variable d - 32.8 Type: d= to display the values of a variable using a simple = operator e = 2.718 be careful with variable names ... because some variables are already defined with USEFUL values!!! pi = 3-142 Type: p^g= pi = 3.142 compute and print more complex expressions f : = e2.a c Type: f:e^2*a(space)*c f = e2a c f = 1.203 Times 107 g : = (a + 4)(b - 2) / d - 10 Type: g (a + b)* (b - 2)(spac g = (a + 4) (b - 2) / (d - 10) g = 0.482 g : = sin(g) / a Type: g:sin(g) / a g = 0.066
write and use a simple function define the function: p1(x): = 3 x2 - 3 x +1 Plot the function Use the Function: p1(a) = 127 y = 1 : = p1(sin(a)) y1 = 0.324 Try some symbolic Matrices and Vectors Solving Equations The graphical solver The numerical solver Given x := -1 y := 1 3x2 - 2x + 1 = y x + y = 4 ft = 1 ft in = 0.083 ft Built-in Units: 1ft + 3 in = 125 ft 1ft + 3 in = 38.1 cm Optimizing Equations One Dimensional Optimization score(x) := -2x + 4x2 - 1x + 1 Given x=-2 Maximize (score. x) = -1057 Two Dimensional Maximize There are multiple ways to show the Same dataOptimization - Note the dependence on seed values. In first example the optimizer is stuck on a local maxima, in the second example the optimizer finds the true global maximum. The only difference is the initialization point! score(x, y) := -2x4 - y4 + 2y2 - y + 4x2 - 1x + 1 y = 1 x = -2 Maximize(score. x, y) = (-1.057 0.838) y := -2 x:= -2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started