Skip to content

Commit c6de602

Browse files
committed
Merge branch 'master' into github-ci
2 parents 2b52633 + 37567cc commit c6de602

File tree

5 files changed

+26
-16
lines changed

5 files changed

+26
-16
lines changed

doc/info/Equations.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,6 +2474,6 @@ z = -----------]]
24742474
The Method of
24752475
Resultants for Computing Real Solutions of Polynomial Systems,
24762476
SIAM Journal on Numerical Analysis, Vol 29 No 3, Jun 1992, pp 831-844
2477-
@url{https:/doi.org/10.1137/0729051, doi:10.1137/0729051}
2477+
@url{https://doi.org/10.1137/0729051, doi:10.1137/0729051}
24782478

24792479
@end itemize

doc/info/cartan.texi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ vector on a form. The vector should be given on the left.
8787
@end deffn
8888

8989
@anchor{ext_diff}
90-
@deffn {Function} ext_diff(@var{form})
90+
@deffn {Function} ext_diff (@var{form})
9191
The exterior derivative operator. It takes one argument, which should be a differential form.
9292
@end deffn
9393

9494
@anchor{lie_diff}
95-
@deffn {Function} lie_diff(@var{vector1},[@var{vector2},@var{form}])
95+
@deffn {Function} lie_diff (@var{vector1},[@var{vector2},@var{form}])
9696
The Lie derivative operator. The first argument is a vector field. The
9797
second argument may be either a vector field or a differential form.
9898
@end deffn

doc/info/colnew.texi.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ The figure below shows the solution for
16161616
(Ascher 1979a) U. Ascher, J. Christiansen and R. D. Russell,
16171617
A collocation solver for mixed order systems of boundary value problems,
16181618
Math. Comp. 33 (1979), 659-679,
1619-
@url{https:/doi.org/10.1090/S0025-5718-1979-0521281-7,
1619+
@url{https://doi.org/10.1090/S0025-5718-1979-0521281-7,
16201620
doi:10.1090/S0025-5718-1979-0521281-7}
16211621

16221622
@item @anchor{ascher-1979b}
@@ -1631,21 +1631,21 @@ The figure below shows the solution for
16311631
(Ascher 1981a) U. Ascher, J. Christiansen and R. D. Russell,
16321632
Collocation software for boundary-value odes,
16331633
ACM Trans. Math Software 7 (1981), 209-222.
1634-
@url{https:/doi.org/10.1145/355945.355950,
1634+
@url{https://doi.org/10.1145/355945.355950,
16351635
doi:10.1145/355945.355950}
16361636

16371637
@item @anchor{ascher-1981b}
16381638
(Ascher 1981b) U. Ascher, U., J. Christiansen, and R. D. Russell.
16391639
‘Algorithm 569: COLSYS: Collocation Software for Boundary-Value ODEs [D2]’.
16401640
ACM Transactions on Mathematical Software 7, no. 2 (June 1981): 223–29.
1641-
@url{https:/doi.org/10.1145/355945.355951,
1641+
@url{https://doi.org/10.1145/355945.355951,
16421642
doi:10.1145/355945.355951}
16431643

16441644
@item @anchor{ascher-russell}
16451645
(Ascher&Russell 1981) U. Ascher and R. D. Russell.
16461646
‘Reformulation of Boundary Value Problems into “Standard” Form’.
16471647
SIAM Review 23, no. 2 (April 1981), 238–54,
1648-
@url{https:/doi.org/10.1137/1023039, doi:10.1137/1023039}
1648+
@url{https://doi.org/10.1137/1023039, doi:10.1137/1023039}
16491649

16501650
@item @anchor{parker-wan}
16511651
(Parker&Wan 1984) David F. Parker and Frederic Y. M. Wan,

interfaces/xmaxima/Tkmaxima/Plotdf.tcl

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# For distribution under GNU public License. See COPYING. #
55
# #
66
# Modified by Jaime E. Villate #
7-
# Time-stamp: "2025-05-27 10:54:55 villate" #
7+
# Time-stamp: "2025-05-29 21:22:36 villate" #
88
############################################################
99

1010
global plotdfOptions
@@ -23,6 +23,7 @@ set plotdfOptions {
2323
{xcenter 0.0 {(xcenter,ycenter) is the origin of the window}}
2424
{ycenter 0.0 "see xcenter"}
2525
{bbox "" "xmin ymin xmax ymax .. overrides the -xcenter etc"}
26+
{algorithm "adamsMoulton" "can be rungeKutta, rungeKuttaA or adamsMoulton"}
2627
{tinitial 0.0 "The initial value of variable t"}
2728
{nsteps 300 "Number of steps to do in one pass"}
2829
{xfun "" "A semi colon separated list of functions to plot as well"}
@@ -100,22 +101,19 @@ proc doIntegrateScreen { win sx sy } {
100101
}
101102

102103
proc doIntegrate { win x0 y0 } {
103-
makeLocal $win xradius yradius c dxdt dydt tinitial tstep nsteps \
104+
makeLocal $win xradius yradius c dxdt dydt algorithm tinitial tstep nsteps \
104105
direction linewidth tinitial versus_t xmin xmax ymin ymax parameters \
105106
width height
106107
linkLocal $win didLast trajectoryStarts
107108
set linewidth [expr {$linewidth*[vectorlength $width $height]/1000.}]
108109
set arrowshape [scalarTimesVector $linewidth {3 5 2}]
109110

110-
# integrator can be rungeKutta, rungeKuttaA or adamsMoulton
111-
set integrator {adamsMoulton}
112111
oset $win trajectory_at [format "%.10g %.10g" $x0 $y0]
113112
lappend trajectoryStarts [list $x0 $y0]
114113
set didLast {}
115114
# puts "doing at $trajectory_at"
116-
# Default value for tstep equal to the plot box's diagonal divided by 400
117115
set steps $nsteps
118-
set h $tstep
116+
set integrator $algorithm
119117

120118
set todo {1}
121119
switch -- $direction {
@@ -399,6 +397,7 @@ proc plotdf { args } {
399397
oset $win didLast {}
400398
# Makes extra vertical space for sliders
401399
linkLocal $win sliders height tstep xradius yradius
400+
# Default value for tstep equal to the plot box's diagonal divided by 400
402401
if { "$tstep" == "" } {
403402
set tstep [expr {[vectorlength $xradius $yradius] / 200.0}]
404403
}
@@ -473,10 +472,21 @@ proc doConfigdf { win } {
473472
pack $frdydx.dxdt $frdydx.dydt -side bottom -fill x -expand 1
474473
pack $frdydx.dydxbut $frdydx.dydtbut -side left -fill x -expand 1
475474

476-
foreach w {narrows parameters xfun linewidth xradius yradius xcenter ycenter tinitial versus_t tstep nsteps direction curves vectors fieldlines } {
475+
foreach w {narrows parameters xfun linewidth xradius yradius xcenter \
476+
ycenter tinitial versus_t tstep nsteps direction curves vectors \
477+
fieldlines} {
477478
mkentry $wb1.$w [oloc $win $w] $w $buttonFont
478479
pack $wb1.$w -side bottom -expand 1 -fill x
479480
}
481+
radiobutton $wb1.rk -text "4th order Runge Kutta" \
482+
-variable [oloc $win algorithm] -value rungeKutta -anchor w
483+
radiobutton $wb1.rka -text "Adaptive-step Runge Kutta" \
484+
-variable [oloc $win algorithm] -value rungeKuttaA -anchor w
485+
radiobutton $wb1.am -text "Adams-Moulton" \
486+
-variable [oloc $win algorithm] -value adamsMoulton -anchor w
487+
pack $wb1.rk -side bottom -expand 1 -fill x
488+
pack $wb1.rka -side bottom -expand 1 -fill x
489+
pack $wb1.am -side bottom -expand 1 -fill x
480490
mkentry $wb1.trajectory_at [oloc $win trajectory_at] \
481491
"Trajectory at" $buttonFont
482492
bind $wb1.trajectory_at.e <KeyPress-Return> \

tests/rtest_elliptic.mac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ true$
10681068
closeto(jacobi_am(0.5, 1.5) - 0.47071978970469916313, 4.4409e-16);
10691069
true$
10701070

1071-
closeto(jacobi_am(1.5, 1.5+%i) - (0.93405421687007830327 - 0.37239604521460716554*%i), 5.4673e-16);
1071+
closeto(jacobi_am(1.5, 1.5+%i) - (0.93405421687007830327 - 0.37239604521460716554*%i), 1.0991e-15);
10721072
true$
10731073

10741074
closeto(jacobi_am(2.0-.5*%i, .5+.5*%i) - (1.4693733607922556333 - 0.7245711235745948013*%i), 8.9510e-16);
@@ -1119,7 +1119,7 @@ makelist(block([z : 2*k*%i, m : 1.75],
11191119
[true, true, true, true, true, true, true, true, true, true, true];
11201120

11211121
makelist(block([z : 2*k*%i, m : 1.75+%i],
1122-
closeto(sin(jacobi_am(z, m))-jacobi_sn(z, m), 4.9651e-16)),
1122+
closeto(sin(jacobi_am(z, m))-jacobi_sn(z, m), 6.2804e-16)),
11231123
k, 0, 10);
11241124
[true, true, true, true, true, true, true, true, true, true, true];
11251125

0 commit comments

Comments
 (0)