Explicit Solutions for the Static and Dynamic Analysis of Discretized Structures with Uncertain Parameters