Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions .github/workflows/serve-ximera.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Ximera Workflow

on:
push:

jobs:
build-ximera:
name: Build and preview Ximera Courses
runs-on: ubuntu-latest

permissions:
actions: read
contents: read
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # full

- name: Setup cache
uses: actions/cache@v4
with:
path: |
**/*.html
**/*.pdf
**/*.svg
**/*.aux
**/*.xref
**/*.toc
!xmPictures/**
!.git/**
!.github/**
key: ximera-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
ximera-${{ github.ref_name }}-
ximera-


- name: Build and publish Ximera courses
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
XIMERA_URL: ${{ vars.XIMERA_URL }}
XIMERA_NAME: ${{ vars.XIMERA_NAME }}${{ github.ref_name }}
run: |
ls -alrt
# git config --global --add safe.directory "$(pwd)"
# export COMMAND=./xmScripts/xmlatex.test
# ./xmScripts/xmlatex ghaction calculus*.tex || echo NOK
./xmScripts/xmlatex ghaction --compile draft.html || echo NOK
echo "✅ Published to $XIMERA_URL$XIMERA_NAME " >> $GITHUB_STEP_SUMMARY

- name: Setup ximera serve cache (only .git)
id: serve-cache
uses: actions/cache/save@v4
with:
path: |
xmScripts/**
.git/**
key: ximeraSERVE-${{ github.ref_name }}-${{ github.sha }}


publish-ximera:
name: Publish Ximera Courses
needs: build-ximera # Waits for the build job to complete
runs-on: ubuntu-latest
environment: production
steps:


- name: Restore ximera serve cache (only .git)
id: serve-cache-restore
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: |
xmScripts/**
.git/**
key: ximeraSERVE-${{ github.ref_name }}-${{ github.sha }}

- name: Serve
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
XIMERA_URL: ${{ vars.XIMERA_URL }}
XIMERA_NAME: ${{ vars.XIMERA_NAME }}
run: |
./xmScripts/xmlatex name
./xmScripts/xmlatex serve -f --compile draft.html # NOTE: -f should not be needed ...
# ./xmScripts/xmlatex serve calculus*.tex -f # NOTE: -f should not be needed ...
echo "✅ Published to $XIMERA_URL$XIMERA_NAME " >> $GITHUB_STEP_SUMMARY



2 changes: 1 addition & 1 deletion antiderivatives/digInBasicAntiderivatives.tex
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ \section{Differential equations}
\end{question}
\begin{remark}
We can directly check that any function $f(x)=Ce^x$ is a solution to our differential equation $f'(x)=f(x)$. Could there be any others? It turns out that these are the \textit{only} solutions. But showing that we didn't miss any is a bit tricky.
\begin{expandable}
\begin{expandable}{explanation}{}
\begin{explanation}
Well, suppose we have some mysterious function $f$ and all we know is that $f'(x)=f(x)$. Let's define a new function $g(x)=f(x)/e^x$. Since our denominator is never 0, the quotient rule tells us that
\[
Expand Down
2 changes: 1 addition & 1 deletion computationsForGraphingFunctions/breakGround.tex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
\item Compute $f'$ and $f''$.
\item Analyze end behavior: as $x \to \pm \infty$, what happens to the graph of $f$? Does it have horizontal asymptotes, increase or decrease without bound, or have some other kind of behavior?
\end{enumerate}
\item Use either the first or second derivative test to identify local extrema and/or
Use either the first or second derivative test to identify local extrema and/or
find the intervals where your function is increasing/decreasing.
In what order should we take these steps? For example, one must compute
$f'$ before computing $f''$. Also, one must compute $f'$ before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
\]
A set that is not bounded is \dfn{unbounded}.
\end{itemize}
\item Given a set $S$, we denote the \dfn{boundary} of $S$ by
Given a set $S$, we denote the \dfn{boundary} of $S$ by
$\partial S$.
\end{definition}

Expand Down
6 changes: 6 additions & 0 deletions coverArt/calculus1Cover/starsRed.xbb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
%%Title: coverArt/calculus1Cover/starsRed.jpg
%%Creator: extractbb 20240407
%%BoundingBox: 0 0 5184 3456
%%HiResBoundingBox: 0.000000 0.000000 5184.000000 3456.000000
%%CreationDate: Thu Feb 6 21:02:28 2025

6 changes: 6 additions & 0 deletions coverArt/calculus2Cover/starsBlue.xbb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
%%Title: coverArt/calculus2Cover/starsBlue.jpg
%%Creator: extractbb 20240407
%%BoundingBox: 0 0 5184 3456
%%HiResBoundingBox: 0.000000 0.000000 5184.000000 3456.000000
%%CreationDate: Thu Feb 6 21:02:28 2025

6 changes: 6 additions & 0 deletions coverArt/calculus3Cover/starsTurquoise.xbb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
%%Title: coverArt/calculus3Cover/starsTurquoise.jpg
%%Creator: extractbb 20240407
%%BoundingBox: 0 0 5184 3456
%%HiResBoundingBox: 0.000000 0.000000 5184.000000 3456.000000
%%CreationDate: Thu Feb 6 21:02:28 2025

6 changes: 6 additions & 0 deletions coverArt/calculusA2Cover/starsGreen.xbb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
%%Title: coverArt/calculusA2Cover/starsGreen.jpg
%%Creator: extractbb 20240407
%%BoundingBox: 0 0 5184 3456
%%HiResBoundingBox: 0.000000 0.000000 5184.000000 3456.000000
%%CreationDate: Thu Feb 6 21:02:28 2025

6 changes: 6 additions & 0 deletions coverArt/calculusECover/starsAmber.xbb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
%%Title: coverArt/calculusECover/starsAmber.jpg
%%Creator: extractbb 20240407
%%BoundingBox: 0 0 5184 3456
%%HiResBoundingBox: 0.000000 0.000000 5184.000000 3456.000000
%%CreationDate: Thu Feb 6 21:02:28 2025

Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
\begin{exercise}

The average velocity of the object on the interval $[0,2]$ is
\[
$$
v_{\text{av}} = \answer{0}\text{m/s.}
\]
$$
\end{exercise}
\end{exercise}

Expand Down
32 changes: 16 additions & 16 deletions definitionOfTheDerivative/exercises/secantLineTangentLine1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
\begin{exercise}

An object is moving along a horizontal line. Its position in feet is given by
\[
$$
s(t) = t^2 - 2
\]
$$
where $0\leq t\leq 5$ is in seconds.

Consider the points on the line below.
Expand Down Expand Up @@ -47,26 +47,26 @@
\begin{exercise}

The average velocity of the object on the interval $[1,3]$ is
\[
$$
v_{\text{av}} = \answer{4}\text{ft/s.}
\]
$$

The average velocity of the object on the interval $[1,t]$ for $t>1$ is
\[
$$
v_{\text{av}} = \answer{t+1}\text{ft/s.}
\]
$$

The average velocity of the object on the interval $[t,1]$ for $0<t<1$ is
\[
$$
v_{\text{av}} = \answer{t+1}\text{ft/s.}
\]
$$

\begin{exercise}

The instantaneous velocity of the object at $t=1$ is
\[
$$
v_{\text{inst}} = \answer{2}\text{ft/s.}
\]
$$

\begin{exercise}

Expand Down Expand Up @@ -94,9 +94,9 @@
\end{tikzpicture}

Assume that $P$ and $A$ are points on the graph of $s(t)$. Then
\[
$$
P = \left(1,\answer{-1}\right) \text{ and } A = \left(t,\answer{t^2-2}\right).
\]
$$

\begin{exercise}

Expand Down Expand Up @@ -132,9 +132,9 @@
\end{tikzpicture}

The slope of this secant line for $0<t<1$ is
\[
$$
m_{\text{sec}} = \answer{\frac{1-t^2}{1-t}}.
\]
$$

What is the connection between the slope of this secant line and the average velocity of the object over the interval $[t,1]$?

Expand Down Expand Up @@ -176,9 +176,9 @@
\end{tikzpicture}

The slope of the tangent line above is
\[
$$
m_{\text{tan}} = \answer{2}.
\]
$$


\end{exercise}
Expand Down
2 changes: 2 additions & 0 deletions greensTheorem/digInCurlAndGreensTheorem.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
\end{abstract}
\maketitle

\renewcommand{\d}{\,d}

%\begin{strip}
A fundamental object in calculus is the derivative. However, there are
different derivatives for different types of functions, an in each
Expand Down
6 changes: 6 additions & 0 deletions logos/authorGuideLogo/bwstars.xbb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
%%Title: logos/authorGuideLogo/bwstars.jpg
%%Creator: extractbb 20240407
%%BoundingBox: 0 0 5184 3456
%%HiResBoundingBox: 0.000000 0.000000 5184.000000 3456.000000
%%CreationDate: Thu Feb 6 21:02:28 2025

7 changes: 5 additions & 2 deletions outcomesList/outcomesBySection.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@


%% Allows for a wide text/regular text
\providecommand{\fullwidth}{}
\providecommand{\normalwidth}{}
\renewcommand{\fullwidth}{\newgeometry{textwidth=10cm,textheight=10cm}}
\renewcommand{\normalwidth}{\restoregeometry}
%% End
Expand Down Expand Up @@ -174,8 +176,9 @@
\masterinput{../appliedOptimization/titlePage.tex}


%% Derivatives of trigonometric functions
\masterinput{../trigonometricDerivatives/titlePage.tex}
% 20250210: DOES NOT EXIST ???
% %% Derivatives of trigonometric functions
% \masterinput{../trigonometricDerivatives/titlePage.tex}

%% Implicit differentiation
\masterinput{../implicitDifferentiation/titlePage.tex}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ \section{Discussion Questions}
\begin{problem}
Two students are asked to evaluate $\int \sqrt{x^2-4} \d x$.

\begin{itemize}
\item[I.] One student claims that
\[
\int \sqrt{x^2-4} \d x = \int x-2 \d x = \frac{1}{2}x^2 - 2x + C.
Expand All @@ -103,6 +104,7 @@ \section{Discussion Questions}
\int \sqrt{x^2-4} \d x =\int \sqrt{4 \sec^2(\theta)-4} \d \theta = \int \sqrt{4 \tan^2(\theta)} \d \theta = \int \tan(\theta) \d \theta
\]
Is this student's solution correct so far? If not, determine a likely error that the student made in the calculation.
\end{itemize}
\end{problem}

\begin{freeResponse}
Expand Down
2 changes: 2 additions & 0 deletions shapeOfThingsToCome/digInStokesTheorem.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
\end{abstract}
\maketitle

\renewcommand{\d}{\,d}

Our final fundamental theorem of calculus is Stokes'
theorem. Historically speaking, Stokes' theorem was discovered after
both Green's theorem and the divergence theorem. Its application is
Expand Down
6 changes: 3 additions & 3 deletions shapeOfThingsToCome/digInSurfaceIntegrals.tex
Original file line number Diff line number Diff line change
Expand Up @@ -392,16 +392,16 @@ \section{Flux: The flow across a surface}
\addplot3 [
surf,
colormap/cool,
shader = faceted interp,
%%%% shader = faceted interp,
point meta = x,
samples = 40,
samples y = 5,
z buffer = sort,
domain = 0:360,
y domain =-0.5:0.5
] (
{(1+0.5*y*cos(x/2)))*cos(x)},
{(1+0.5*y*cos(x/2)))*sin(x)},
{(1+0.5*y*cos(x/2))*cos(x)},
{(1+0.5*y*cos(x/2))*sin(x)},
{0.5*y*sin(x/2)}
);
\end{axis}
Expand Down
2 changes: 2 additions & 0 deletions xmPreamble.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\def\xmNotExpandableAsAccordion{true}
\def\xmNotHintAsExpandable{true}