Repairing a Length-Unit Mismatch

A nonlinear spring calculation solves


(1200 N/m)x+(30000 N/m3)x3−180 N=0.(1200\ \text{N/m})x+(30000\ \text{N/m}^3)x^3-180\ \text{N}=0.


A programmer stores extension as u in millimetres, with x=u/1000x=u/1000 when numerical values are used. The residual calculation below correctly returns newtons, but the update mixes length units:


MATLAB
u = 100;                             % mm
r = 1.2*u + 3.0e-5*u^3 - 180;        % N
slope = 1200 + 90000*(u/1000)^2;      % N/m
uNew = u - r/slope;                   % intended to be mm


Which replacement produces a dimensionally consistent Newton update in millimetres? Candidate values are shown to three decimal places.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Applications in Numerical Analysis Questions: