Skip to content

Commit 1817c7e

Browse files
Erennn7Copilot
andauthored
Update mathematics/simpson_rule.r
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5852147 commit 1817c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mathematics/simpson_rule.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ print_integration_result <- function(f, a, b, n, result, exact = NULL) {
111111
#' @param result: Computed integral value
112112
#' @param exact: Exact value if known (optional)
113113

114-
cat(sprintf("Simpson's Rule Integration:\n"))
114+
cat("Simpson's Rule Integration:\n")
115115
cat(sprintf(" Interval: [%.4f, %.4f]\n", a, b))
116116
cat(sprintf(" Subintervals: %d\n", n))
117117
cat(sprintf(" Approximate integral: %.10f\n", result))

0 commit comments

Comments
 (0)