subject

The secret company project has been unveiled: a series of x springs which follow polynomial laws of force–displacement. as several constants are necessary to characterize these springs, you have been asked to evaluate the experimental data and provide the necessary calculations.

the x spring displacement is described by a polynomial extension of hooke's law,

f = -k x - q x^2 - r x^3

where k, q,r are the new x spring constants (note the order of coefficients and the again, the spring constants may be determined from the experimental data as the coefficients of the polynomial best fitting the displacement and force data. (keep the signs and order of coefficients and powers in mind! )

the data are recorded in the format [ m x ]; that is, the mass in the first column and the displacement observed in the second. units are unspecified in the experimental record.

quadratic x spring

10 2.152
20 8.880
40 38.53
80 137.7
160 528.3
320 2078.
640 8255.

cubic x spring

80 16.63
160 108.7
320 778.7
640 5989.

compose a function `fit_x_spring` which accepts an array of data in this format and returns the corresponding spring constants k, q,r. it should work the same for all orders of the polynomial behavior of the hyperelastic x spring.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What is the worst-case complexity of the maxrepeats function? assume that the longest string in the names array is at most 25 characters wide (i.e., string comparison can be treated as o( class namecounter { private: int* counts; int nc; string* names; int nn; public: namecounter (int ncounts, int nnames); int maxrepeats() const; }; int namecounter: : maxrepeats () { int maxcount = 0; for (int i = 0; i < nc; ++i) { int count = 1; for (int j = i+1; j < nc; ++j) { if (names[i] == names[j]) ++count; } maxcount = max(count, maxcount); } return maxcount; }
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
You know the right answer?
The secret company project has been unveiled: a series of x springs which follow polynomial laws of...
Questions
question
Engineering, 05.10.2020 14:01
question
Mathematics, 05.10.2020 14:01
Questions on the website: 13722360