Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The thermal expansion of a metal alloy at different temperatures are shown in Ta

ID: 3600185 • Letter: T

Question

The thermal expansion of a metal alloy at different temperatures are shown in Table II Your goal is to find the thermal expansion of the alloy at 45 degrees. Write MATLAB codes to answer the following: a) Obtain the linear Lagrange polynomial expressions and determine the estimated thermal expansion values for each temperature given. Then, determine the maximum and average errors across all data points. Plot all the data points and the polynomial on a single figure. (Recall Linear Lagrange Polynomial Fit utilizes the two closest data points to the desired value) b) Calculate the expansion at 45 degrees using the linear Lagrange polynomial code written from part a) c) Obtain the quadratic Lagrange polynomial expressions and determine the estimated thermal expansion values for each temperature given. Then, determine the maximum and average errors across all data points. Plot all the data points and the polynomial on a single figure. (Recall Quadratic Lagrange Polynomial Fit utilizes the three closest data points to the desired value) d) Calculate the expansion at 45 degrees using quadratic Lagrange polynomial code written from part c) e) Which Lagrange Fit method, if any, has the better estimation? Discuss your answer on the result and state the reason whv. Table II. Instantaneous thermal expansion at different temperatures TemperatureInstantaneous Thermal 80 60 40 20 Expansion ( in/in/oF 6.47 6.36 6.24 6.12 6.00

Explanation / Answer

import java.io.Serializable;

import java.util.ArrayList;

import java.util.Date;

import java.util.List;

public class CarDataNode {

        private long serialVersionUID;

        private String licensePlateNumber;

        private Date checkIn;

        private Date checkOut;

       

        public CarDataNode(String cdn){

                licensePlateNumber = cdn;

                checkIn = new Date();

                checkOut = new Date();

        }

       

       

        public String getLPN(){

                return licensePlateNumber;

}

        public CarDataNode getNext(){

                CarDataNode cdn = new CarDataNode("");

                return cdn;

        }

       

        public void checkIn(){

                checkIn = new Date();

        }

       

        public void checkOut(){

                checkOut = new Date();

        }

       

        public Date getCheckIn(){

                return checkIn;

        }

       

        public Date getCheckOut(){

                return checkOut;

        }

       

        public void addNodeAfter(CarDataNode addCar){

               

                //iterate for loop through LinkedList

                for(int i = 0; i < cdnList.size(); i++){

                       

                        //check position of the given node by using equals

                        if(cdnList.get(i).equals(addCar)){

                               

                                //create new Node and add it to list at

                                //next index

                                CarDataNode addCarNext = new CarDataNode("");

                                cdnList.add(i+1, addCarNext);}}}

        public void removeNodeAfter(CarDataNode reCar){

                //iterate through loop through linked list

                for(int i = 0; i <cdnList.size(); i++){

                       

                        //check position of node

                        if(cdnList.get(i).equals(reCar)){

                               

                                cdnList.remove(i);

                                }}}

        public boolean equals(CarDataNode eqCar){

                if(this.licensePlateNumber.equals(eqCar.licensePlateNumber)){

                        return true;

                }

                else

                        return false;

        }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote