WeBWorKdocs

sq_webwork:


Home
Current UR
courses
Visitor
page
Intro to
WeBWorK
WeBWorK 2
Twiki
WW
Community
Grant Support
& awards
Discussion
group
Problem
library
Write/modify
problems
Create &
manage course
Tutorial on
running a course
HowTos
FAQ
WeBWorK2
FAQ
Software
Download
How to
Install WW server
Feedback
Site Map
Change
preferences
Change
password





Prev | Next | tutorial

This page is no longer being maintained. The new URL for this content is http://webwork.maa.org/wiki/JavaScript

This problem illustrates how you can embed JavaScript code in a WeBWorK example to create an interactive homework problem that could never be provided by a text book. WeBWorK can use existing javaScript and Java code to augment its capabilities. To obtain this problem


(1 pt) rochesterLibrary/setMAAtutorial/javascriptexample1.pg

JavaScript Example 1

(1 pt) rochesterLibrary/setMAAtutorial/javascriptexample1.pg
Find the derivative of the function f(x). The windows below will tell you the value of f for any input x. (I call this an "oracle function", since if you ask, it will tell.)

f '( -1  ) =

You may want to use a calculator to find the result. You can also enter numerical expressions and have WeBWorK do the calculations for you.


WARNINGS
µ¦å{h­
Enter this code
{viewSource(setMAAtutorial/javascriptexample1.pg)}

Comments:

This problem is just a demo -- it doesn't actually work if you push the submit answer button. (You can test a {linkWebworkProblem("tutorialCourse","setFirstSteps","9","live")} version of this problem.)


Prev | Next | tutorial

Last update: Monday, March 3, 2008 at 6:29:59 PM.
This site maintained using Manila and Frontier software.