W. Trevor King [Mon, 6 May 2013 15:09:43 +0000 (11:09 -0400)]
S&Jv8,p27.01: Add missing period to the question
W. Trevor King [Mon, 6 May 2013 15:05:38 +0000 (11:05 -0400)]
S&Jv8,p27.49: Fix 'headlinght' -> 'headlight' typo
W. Trevor King [Wed, 25 Jul 2012 12:42:42 +0000 (08:42 -0400)]
Fix subscripting (E{600} -> E_{600}) in Serway and Jewett v8's 24.13.
W. Trevor King [Wed, 25 Jul 2012 12:40:44 +0000 (08:40 -0400)]
Fix subscripting (r_12 -> r_{12}) in Serway and Jewett v8's 25.21.
W. Trevor King [Fri, 1 Jun 2012 21:13:19 +0000 (17:13 -0400)]
Use non-breaking space (~) between 'Figure' and the figure number.
W. Trevor King [Fri, 1 Jun 2012 21:11:45 +0000 (17:11 -0400)]
Fix B_P -> B_Q in Serway and Jewett v8's 30.61.c solution.
W. Trevor King [Fri, 1 Jun 2012 04:31:08 +0000 (00:31 -0400)]
Add solutions for Serway and Jewett v8's chapter 31.
W. Trevor King [Thu, 31 May 2012 19:47:54 +0000 (15:47 -0400)]
Add problems for Serway and Jewett v8's chapter 31.
W. Trevor King [Thu, 31 May 2012 12:44:20 +0000 (08:44 -0400)]
Add missing figures and solutions to Serway & Jewett v8's chapter 29.
W. Trevor King [Wed, 9 May 2012 10:44:51 +0000 (06:44 -0400)]
Fix benifit -> benefit typo in Serway and Jewett v4's 21.35.
W. Trevor King [Mon, 7 May 2012 20:55:27 +0000 (16:55 -0400)]
Add solutions and graphics to Serway and Jewett v8's chapter 28 problems.
* Use \EMF instead of \varepsilon.
* Graphics and solutions added to 28.2, 28.11, 28.21, 28.26, 28.59.
* Assorted typos fixed in the problem text.
W. Trevor King [Thu, 3 May 2012 16:38:21 +0000 (12:38 -0400)]
Update Serway and Jewett v8 to use Circ.asy v0.2.
Also:
* Fix stron -> strong typo in 26.32.
* Add part b solution to 26.57.
* Remove extra significant figure from 26.67 solutions.
W. Trevor King [Thu, 3 May 2012 13:18:36 +0000 (09:18 -0400)]
Default switchSPST type should be open in Circ.asy.
W. Trevor King [Thu, 3 May 2012 12:26:47 +0000 (08:26 -0400)]
Update Young and Freedman v12 to use Circ.asy v0.2.
W. Trevor King [Wed, 2 May 2012 20:14:21 +0000 (16:14 -0400)]
Update Giancoli v6 to use Circ.asy v0.2.
W. Trevor King [Wed, 2 May 2012 19:15:37 +0000 (15:15 -0400)]
Convert TwoTerminal to a more general MultiTerminal in Circ.asy.
This allows me to add switchSPDT, which has three terminals.
Label handling is also more flexible in the new system. By default,
labels will stay in their current positions (above/below in element
coordinates for label/value). However, the label text is no longer
rotated along with the element. If you want rotated text, you'll have
to rotate it yourself:
MultiTerminal Rpos = resistor(..., dir=90, ...
label=rotate(90)*Label("my label", align=W), ...);
The benefit to this approach is that you can now set your own
alignment, which will override the default above/below positioning.
This commit also makes some whitespace normalizations and bumps
Circ.asy to version 0.2. To upgrade code using Circ 0.1, make the
following changes:
* Replace TwoTerminal with MultiTerminal.
* Replace ang=... with dir=... in MultiTerminal initializations.
* Replace x.beg with x.terminal[0] and x.end with x.terminal[1].
* Adjust labeling as described above.
* Replace centerto with two_terminal_centerto.
W. Trevor King [Mon, 30 Apr 2012 19:33:30 +0000 (15:33 -0400)]
Fix solution rounding in Serway and Jewett v8's problem 27.1.
W. Trevor King [Mon, 30 Apr 2012 18:05:45 +0000 (14:05 -0400)]
Factor out _two_terminal_circle() from source() and lamp() in Circ.asy.
This will make implementing future circle-based symbols easier (for
example, motors, voltmeters, ammeters, etc.).
Note that we don't use `unitcircle` because that would create a closed
path, and TwoTerminal fills in all closed paths.
W. Trevor King [Mon, 30 Apr 2012 17:51:16 +0000 (13:51 -0400)]
Add lamp symbols (normal and illuminating) to Circ.asy.
W. Trevor King [Fri, 27 Apr 2012 19:47:27 +0000 (15:47 -0400)]
Add solutions and graphics to Serway and Jewett v8's chapter 26 problems.
W. Trevor King [Thu, 26 Apr 2012 19:37:23 +0000 (15:37 -0400)]
Fix V_B typos in Serway and Jewett v8's 25.16 solution.
W. Trevor King [Thu, 26 Apr 2012 13:18:57 +0000 (09:18 -0400)]
Add graph to Serway and Jewett v8's 25.27.b solution.
W. Trevor King [Thu, 26 Apr 2012 12:31:27 +0000 (08:31 -0400)]
Fix x position of last solution segment in Serway and Jewett v8's 25.36.
W. Trevor King [Thu, 26 Apr 2012 12:25:42 +0000 (08:25 -0400)]
Highlight solution for Serway and Jewett v8's 25.27.b.
W. Trevor King [Fri, 20 Apr 2012 21:48:23 +0000 (17:48 -0400)]
Add solution text for Serway and Jewett v8's 25.7, .12, and .16.
W. Trevor King [Fri, 20 Apr 2012 21:08:29 +0000 (17:08 -0400)]
Add question text and figures for Serway and Jewett v8's 25.7, .12, and .16.
W. Trevor King [Fri, 20 Apr 2012 21:07:16 +0000 (17:07 -0400)]
Fix typos in Serway and Jewett v8's 23.62 and 25.21.
W. Trevor King [Thu, 12 Apr 2012 19:03:57 +0000 (15:03 -0400)]
Fix opf -> of typo in Serway and Jewett v8's problem 23.43.
W. Trevor King [Thu, 12 Apr 2012 08:03:17 +0000 (04:03 -0400)]
Tighten up label positioning in Serway and Jewett v8's problem 23.09.
W. Trevor King [Thu, 12 Apr 2012 07:50:44 +0000 (03:50 -0400)]
Clean up latex test harness and build all but Serway and Jewett v4.
W. Trevor King [Thu, 12 Apr 2012 07:21:11 +0000 (03:21 -0400)]
More problem cleanups (mostly labeling).
I've checked through most of the figures, and I haven't seen any
obvious mistakes. There are still a few problems in Serway & Jewett
v4 that need to be upgraded from MetaPost to Asymptote, though.
W. Trevor King [Thu, 12 Apr 2012 04:27:06 +0000 (00:27 -0400)]
Test absolute and relative alignment for Distance labels.
W. Trevor King [Thu, 12 Apr 2012 04:01:22 +0000 (00:01 -0400)]
Assorted changes to get problems working with new, flexible labels.
W. Trevor King [Thu, 12 Apr 2012 02:41:48 +0000 (22:41 -0400)]
Add spaces after `unrecognized ... type` in Circ.asy.
Otherwise you get messages like:
Error, unrecognized resistor type-90
W. Trevor King [Thu, 12 Apr 2012 02:00:39 +0000 (22:00 -0400)]
Fix begin/end problem/solution errors in some S&J v4 problems.
W. Trevor King [Thu, 12 Apr 2012 01:18:26 +0000 (21:18 -0400)]
Revert problem.relativistic-limo.tex back to expecting `limo.*`.
This reverses a portion of
commit
ed3656403a9befab65e394949f3862657659f41d
Author: W. Trevor King <wking@drexel.edu>
Date: Wed Apr 11 21:04:46 2012 -0400
Make the Python limo script executable.
Also adjust the name of the expected file to ${SCRIPT/.py/} to
make it easier to automatically generate the required image.
The new scheme works with
TARGET="$(echo "${SCRIPT}" | awk -F. '{print $(NF-1)}').png"
"${SCRIPT}" "${TARGET}"
This avoids problems like
LaTeX Warning: File `problem.relativistic-limo.limo' not found on
input line 50 .
! LaTeX Error: Unknown graphics extension: .relativistic-limo.limo.
With the new rule, if you write a problem `abcd.efgh.tex` that needs
an image `xyz.png`, the script generating that image should be
`abde.efgh.xyz.py`.
W. Trevor King [Thu, 12 Apr 2012 01:08:12 +0000 (21:08 -0400)]
Fix problem* vs. problem1 in Serway and Jewett v4's problem 19.35.
W. Trevor King [Thu, 12 Apr 2012 01:04:46 +0000 (21:04 -0400)]
Make the Python limo script executable.
Also adjust the name of the expected file to ${SCRIPT/.py/} to make it
easier to automatically generate the required image.
W. Trevor King [Thu, 12 Apr 2012 01:03:15 +0000 (21:03 -0400)]
Fix \U{\m} -> \U{m} in Serway and Jewett v4's problem28.25.tex.
W. Trevor King [Thu, 12 Apr 2012 00:49:28 +0000 (20:49 -0400)]
Update MetaPost to Asymptote in Serway and Jewett v4's problem 19.19.
W. Trevor King [Thu, 12 Apr 2012 00:37:14 +0000 (20:37 -0400)]
Add pChargePen and other charge-fill pens to ElectroMag.asy.
W. Trevor King [Thu, 12 Apr 2012 00:26:58 +0000 (20:26 -0400)]
Add Ring structure to Mechanics.asy.
Also pull path labeling out into label_path().
W. Trevor King [Wed, 11 Apr 2012 22:25:03 +0000 (18:25 -0400)]
Update MetaPost to Asymptote in Serway and Jewett v4's problem 19.16.
W. Trevor King [Wed, 11 Apr 2012 22:03:19 +0000 (18:03 -0400)]
Update MetaPost to Asymptote in Serway and Jewett v4's problem 19.15.
W. Trevor King [Wed, 11 Apr 2012 21:54:02 +0000 (17:54 -0400)]
Update MetaPost to Asymptote in Serway and Jewett v4's problem 19.13.
W. Trevor King [Wed, 11 Apr 2012 21:52:42 +0000 (17:52 -0400)]
Add optional subscript override to Coulomb labels in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 21:40:27 +0000 (17:40 -0400)]
Adjust Coulomb bundles to place vector labels at the vector tips in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 21:27:14 +0000 (17:27 -0400)]
(pTo - pFrom) makes more sense for label alignment in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 21:25:18 +0000 (17:25 -0400)]
Simplify Spring labeling to respect Label attributes in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 20:59:48 +0000 (16:59 -0400)]
Simplify Surface labeling to respect Label attributes in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 20:53:05 +0000 (16:53 -0400)]
Strip trailing whitespace from Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 20:52:28 +0000 (16:52 -0400)]
Simplify Wire and Pendulum labeling to respect Label attributes in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 20:45:11 +0000 (16:45 -0400)]
Adjust hatVect to place vector label at vector tip in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 20:27:49 +0000 (16:27 -0400)]
Simplify Angle labeling to respect Label attributes in Mechanics.asy.
W. Trevor King [Wed, 11 Apr 2012 20:02:25 +0000 (16:02 -0400)]
Add Vector.copy(), +, and - to Mechanics.asy.
Also simplify Vector labeling to respect Label attributes (along the
lines of the earlier changes with LabeledCircle).
W. Trevor King [Wed, 11 Apr 2012 19:11:28 +0000 (15:11 -0400)]
Add Mass label alignment tests to Mechanics-test.asy.
W. Trevor King [Wed, 11 Apr 2012 18:55:03 +0000 (14:55 -0400)]
Update MetaPost to Asymptote in Serway and Jewett v4's problem 19.11.
W. Trevor King [Wed, 11 Apr 2012 18:50:45 +0000 (14:50 -0400)]
Add CoulombEField and CoulombEFields to ElectroMag.asy.
W. Trevor King [Wed, 11 Apr 2012 18:17:52 +0000 (14:17 -0400)]
Update MetaPost to Asymptote in Serway and Jewett v4's problem 19.9.
W. Trevor King [Wed, 11 Apr 2012 18:04:49 +0000 (14:04 -0400)]
Update MetaPost to Asymptote in Serway and Jewett v4's problem 19.4.
W. Trevor King [Wed, 11 Apr 2012 17:33:46 +0000 (13:33 -0400)]
Add begin{solution} to Serway and Jewett v4's problem 5.23.
W. Trevor King [Wed, 11 Apr 2012 17:28:23 +0000 (13:28 -0400)]
Fix problem* vs. problem62 in Serway and Jewett v4's problem 1.62.
W. Trevor King [Wed, 11 Apr 2012 17:12:56 +0000 (13:12 -0400)]
Fix parenthesis in Serway and Jewett v4's problem 1.60.
W. Trevor King [Wed, 11 Apr 2012 17:07:27 +0000 (13:07 -0400)]
Update MetaPost to Asymptote Giancoli v6's problem 17.40.
W. Trevor King [Wed, 11 Apr 2012 16:00:34 +0000 (12:00 -0400)]
Don't break with Asymptote conventions. Use Label L instead of Label label.
W. Trevor King [Wed, 11 Apr 2012 15:45:25 +0000 (11:45 -0400)]
Add LabeledCircle to Mechanics.asy and base Mass and Charge off of it.
This makes label handling easy and consistent (I've also left more
label processing to the Label itself). Unfortunately, I can't figure
out how to make subclasses in Asymptote, so you'll have to update your
code to access the parameters that moved into LabeledCircle. There
are new .center() and .set_center() methods to future proof you
against further changes to the location of that parameter.
W. Trevor King [Thu, 5 Apr 2012 05:30:12 +0000 (01:30 -0400)]
Fix E1 -> E3,E4 typos in Serway and Jewett v8's problem 24.11.
W. Trevor King [Thu, 5 Apr 2012 05:26:56 +0000 (01:26 -0400)]
Fix e -> \E exponent typo in Serway and Jewett v8's problem 23.15.
W. Trevor King [Wed, 4 Apr 2012 19:25:14 +0000 (15:25 -0400)]
Fix dA -> \dd A in Serway and Jewett v8's problem 24.13.
W. Trevor King [Wed, 4 Apr 2012 19:24:25 +0000 (15:24 -0400)]
Add solution for Serway and Jewett v8's problem 24.21.
W. Trevor King [Wed, 4 Apr 2012 19:08:40 +0000 (15:08 -0400)]
Add illustration for Serway and Jewett v8's problem 24.21.
W. Trevor King [Wed, 4 Apr 2012 19:07:52 +0000 (15:07 -0400)]
Add solution for Serway and Jewett v8's problem 24.13.
W. Trevor King [Wed, 4 Apr 2012 18:51:45 +0000 (14:51 -0400)]
Add solution for Serway and Jewett v8's problem 24.11.
W. Trevor King [Wed, 4 Apr 2012 18:44:36 +0000 (14:44 -0400)]
Add `fill` option to `Angle` in Mechanics.asy.
W. Trevor King [Wed, 4 Apr 2012 16:47:46 +0000 (12:47 -0400)]
Add illustration for Serway and Jewett v8's problem 23.50.
W. Trevor King [Tue, 3 Apr 2012 14:20:48 +0000 (10:20 -0400)]
Add illustration for Serway and Jewett v8's problem 23.17.
W. Trevor King [Tue, 3 Apr 2012 14:12:29 +0000 (10:12 -0400)]
Add illustration for Serway and Jewett v8's problem 23.09.
W. Trevor King [Tue, 3 Apr 2012 14:05:20 +0000 (10:05 -0400)]
Fix typo \l -> \; in Serway and Jewett v8's problem 24.31.
W. Trevor King [Tue, 3 Apr 2012 13:47:35 +0000 (09:47 -0400)]
Fix Thre -> Three typo in Serway & Jewett v8's problem 23.9.
W. Trevor King [Fri, 27 May 2011 21:43:55 +0000 (17:43 -0400)]
Fixes to wking problems so they'll compile.
W. Trevor King [Fri, 27 May 2011 21:43:32 +0000 (17:43 -0400)]
Add line endings after sections in write_problemlist.py.
W. Trevor King [Fri, 27 May 2011 21:23:40 +0000 (17:23 -0400)]
Add textcomp to tests all_problems to provide \textcent.
W. Trevor King [Fri, 27 May 2011 20:53:40 +0000 (16:53 -0400)]
Clean up compilation errors in Serway_and_Jewett_8.
W. Trevor King [Fri, 27 May 2011 19:47:37 +0000 (15:47 -0400)]
Add all-problem testing.
W. Trevor King [Fri, 27 May 2011 19:22:26 +0000 (15:22 -0400)]
Add last few weeks of Phys 102 solutions.
W. Trevor King [Fri, 27 May 2011 19:21:12 +0000 (15:21 -0400)]
Add Asymptote test output to .gitignore.
W. Trevor King [Fri, 27 May 2011 19:19:03 +0000 (15:19 -0400)]
Add vector_field() to Mechanics. Also do some whitespace cleanups.
W. Trevor King [Fri, 27 May 2011 15:43:50 +0000 (11:43 -0400)]
Add Current() and pull out special pens in ElectroMag.
W. Trevor King [Fri, 20 May 2011 19:47:58 +0000 (15:47 -0400)]
Add svg output to Asymptote tests (via dvisvgm).
W. Trevor King [Fri, 20 May 2011 19:26:01 +0000 (15:26 -0400)]
Add stickfigure-test.asy and allow independent leg and arm movement.
W. Trevor King [Fri, 20 May 2011 18:20:11 +0000 (14:20 -0400)]
Add aCharge tests to ElectroMag-test.asy.
W. Trevor King [Fri, 20 May 2011 17:57:05 +0000 (13:57 -0400)]
Add TwoTerminal.shift() and kirchhoff_loop() to Circ.asy.
W. Trevor King [Fri, 13 May 2011 16:47:04 +0000 (12:47 -0400)]
Fix spelling Kirchoff -> Kirchhoff.
W. Trevor King [Fri, 8 Apr 2011 15:29:24 +0000 (11:29 -0400)]
Add week 2 recitation problems for phys-102.
W. Trevor King [Fri, 8 Apr 2011 13:15:27 +0000 (09:15 -0400)]
Correct typo 'if' -> 'of' for S&Jv8 P9.9.
W. Trevor King [Fri, 1 Apr 2011 18:51:01 +0000 (14:51 -0400)]
Add week 1 recitation problems for phys-102.
W. Trevor King [Fri, 25 Mar 2011 15:43:45 +0000 (11:43 -0400)]
Add rest of winter 101 problems.
W. Trevor King [Fri, 21 Jan 2011 18:54:13 +0000 (13:54 -0500)]
Use `wtk_format` in hwk and rec solutions to fit more on a page.
W. Trevor King [Fri, 21 Jan 2011 18:52:10 +0000 (13:52 -0500)]
Add week four recitation problems.
W. Trevor King [Fri, 21 Jan 2011 18:36:31 +0000 (13:36 -0500)]
Cleaner solution for S&J 8, prob. 2.61.