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.
W. Trevor King [Fri, 21 Jan 2011 18:35:52 +0000 (13:35 -0500)]
Correct typos in S&J 8, prob 2.11
W. Trevor King [Fri, 14 Jan 2011 19:27:47 +0000 (14:27 -0500)]
Remove Block from Mechanics.asy's TODO (done in its initial import).
W. Trevor King [Fri, 14 Jan 2011 17:12:36 +0000 (12:12 -0500)]
Add week 3 recitation solutions.
W. Trevor King [Thu, 13 Jan 2011 18:10:37 +0000 (13:10 -0500)]
Add solutions to week 2 recitation problems.
W. Trevor King [Thu, 13 Jan 2011 13:22:08 +0000 (08:22 -0500)]
'the webpage' -> 'this course website' in html/contact.html.
W. Trevor King [Thu, 13 Jan 2011 13:16:28 +0000 (08:16 -0500)]
Merge remote branch 'public/master'
W. Trevor King [Thu, 13 Jan 2011 13:09:37 +0000 (08:09 -0500)]
Update Makefiles and some source for Asymptote 2.09.
W. Trevor King [Thu, 13 Jan 2011 13:07:16 +0000 (08:07 -0500)]
Update Copyright years on recently changed Asymptote libs.
Also correct wireU -> wire in wire() error message.
W. Trevor King [Thu, 13 Jan 2011 13:05:03 +0000 (08:05 -0500)]
Update TwoTerminal parameter orders in Kirchoff's Law notes.
This updates the source to follow changes made to Circ.asy in commit
663d2cc1dea88109e4ab15da910936553d36a9a3
W. Trevor King [Thu, 13 Jan 2011 12:31:19 +0000 (07:31 -0500)]
Add usepackage("wtk_cmmds") to asydef in templates sourcing LaTeX problems.
W. Trevor King [Thu, 13 Jan 2011 12:26:57 +0000 (07:26 -0500)]
Add recitation 2 problems for Phys 101.
W. Trevor King [Thu, 13 Jan 2011 12:24:40 +0000 (07:24 -0500)]
Add labelOffsetAdjustment to Mechanics.Angle.draw().
For situations where the automatic positioning needs manual tweaking.
W. Trevor King [Fri, 7 Jan 2011 16:51:31 +0000 (11:51 -0500)]
Add week 1 problems for Winter 2011 edition of Physics 101.
W. Trevor King [Sat, 20 Nov 2010 19:40:45 +0000 (14:40 -0500)]
Add atomgen link to README.newbie.
W. Trevor King [Tue, 22 Jun 2010 01:20:45 +0000 (21:20 -0400)]
Merged 'no entry' fix to printSectionDocs
W. Trevor King [Mon, 21 Jun 2010 22:57:00 +0000 (18:57 -0400)]
Updated picture links to /directory/data/pics-WIDTHxHEIGHT/NAME.jpg
To match the department page at least back to Oct 24 2009 when I began
versioning the department page.