範例 共 2 個步驟,在同一個工作階段中依序執行。每一步都在引擎上實際執行過,下方的輸出就是它產生的結果。
r = SurvivalFunction[GompertzMakehamDistribution[λ, ξ], t];
rs = r r;
rp = 1 - (1 - r) (1 - r);沒有輸出——這個步驟是在為下一步做準備。
Block[{λ = 2, ξ = .3},
Plot[{rs, rp}, {t, 0, 2}, PlotStyle -> Thick, ImageSize -> 400, BaseStyle -> {FontFamily -> "Helvetica"}, PlotLabel -> "Reliability in series and in parallel", Epilog -> {Inset[Framed[Style["in parallel", 12], Background -> LightYellow], {0.7, 0.6}, {Left, Bottom}], Inset[Framed[Style["in series", 12], Background -> LightYellow], {0.6, 0.3}, {Right, Top}]}]]-Graphics-所有操作範例 · 函式參考 · 從 MCP 用戶端使用這個