Writing interactive exercises

15 views
Skip to first unread message

Stephan Boltzmann

unread,
Jan 31, 2025, 1:22:36 PM1/31/25
to PreTeXt support
The "Active Calculus" textbook is great and it's interactive exercises great for teaching!

Is this a webwork exercise?

I realized that the system is quite elaborate, because it recognizes algebraic equivalence of the answers entered in the text input fields?

How is this technically done (i.e. via a computer algebra system [CAS] in the background)?

Alex Jordan

unread,
Jan 31, 2025, 1:33:13 PM1/31/25
to pretext...@googlegroups.com
The Preview Activity on that page is a WeBWorK/PG exercise whose code
is included directly in the PreTeXt source of the book. The exercises
at the bottom of the page come from the WeBWorK Open Problem Library
and are just called directly from the OPL.

PG assesses formula expressions as equivalent by taking a bunch of
random input values and checking that the outputs match. Additional
things can be done if you actually want to distinguish between
different forms for equivalent expressions. So it is not a CAS,
although it is possible to tie questions into Sage. It just adds a lot
of processing overhead.
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-support/2c86cc17-c87a-46d2-83da-d1b376b5562en%40googlegroups.com.

Alex Jordan

unread,
Jan 31, 2025, 1:38:51 PM1/31/25
to pretext...@googlegroups.com
Actually on that page, the Preview Activity is also an OPL question. I
was thinking of a later chapter where we wrote some exercises
specifically for AC.
Reply all
Reply to author
Forward
0 new messages