From 034169df2de584fc17f7b43b01e1025f04cfaa48 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Wed, 23 Jul 2025 14:49:38 -0400 Subject: [PATCH] Fix missing multiplication operator in pendulum example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing multiplication operator between 0.1 and sin(t) in the pendulum external torque definition. In Julia, you cannot write 0.1sin(t) - you need 0.1 * sin(t) for the multiplication operator. This fixes a syntax error that would cause the code example to fail when executed. πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docs/src/getting_started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/getting_started.md b/docs/src/getting_started.md index 28518164a..0948cabcb 100644 --- a/docs/src/getting_started.md +++ b/docs/src/getting_started.md @@ -379,7 +379,7 @@ end uβ‚€ = [ΞΈβ‚€, Ο‰β‚€] # initial state vector tspan = (0.0, 10.0) # time interval -M = t -> 0.1sin(t) # external torque [Nm] +M = t -> 0.1 * sin(t) # external torque [Nm] prob = DE.ODEProblem(pendulum!, uβ‚€, tspan, M) sol = DE.solve(prob)