Please work through the tasks on this page.
You can see a recording of today’s session here - https://youtu.be/-8fsgNMC0vo
Once you are finished, use the “Create Assignment” button in Doenet, publish your activity. Set a deadline of 1 PM Eastern the following day, choose “different variant per student,” and generate a class code or shareable link. Paste the code or link as a reply to this post before 11 AM Eastern the following day.
Sometime before tomorrow’s workshop, please work through at least one other participant’s activity by typing in reasonable and unreasonable answers to give a variety of feedback. ‘Like’ their post to indicate which activity you have completed.
I was not able to join today’s workshop but am trying to work on the assignment. I’m confused about question 3 and 4: in the handout these two questions asked about f(9) and f(20), I can’t see how they are related to sum and product; can someone explain?
For the function g(x), how to set it up so it has two randomized distinct irreducible rational (non integer) roots between 0 and 1 where the numerators or denominators are all natural numbers between 1 and 15?
1 Like
It comes from here -
"Create a math component, sum, that is the sum of the two roots.
Create another math component, product, that is the product of the two roots.
The third problem should ask the user to evaluate the function at sum. Any equivalent answer should be marked correct.
The fourth problem should ask the user to evaluate the function at product. Only the exact integer value should be marked correct. "
The two solutions were x=4 and x=5. If you find their sum, you get 9 and their product is 20. There’s nothing special, mathematically speaking, about the sum and the product of the roots other than another opportunity to practice references, doing computations with mathematical objects and then evaluating functions at some number.
1 Like
Consider working backwards…if you choose any random values for a, b, and c, you aren’t guaranteed rational roots so that’s likely not going to work too well. However, if you want roots that are rational, perhaps we should start there.
Eventually, g(x) has to be of the form (x-a/b)(x-c/d) where a/b and c/d are fractions that cannot be simplified. For the root to be between 0 and 1, what must be true of the value of a relative to b? Similarly, what must be true of the value of c relative to d?
We can rewrite (x-a/b)(x-c/d) as (bx-a)(dx-c) and expand (bx-a)(dx-c) to get g(x). If you choose your values of a, b, c, and d carefully, you should be able to make sure a/b and c/d are always irreducible rational numbers between 0 and 1 and g(x) has the needed roots.
(Hint: Look up some attributes of <selectFromSequence>)
Thanks! How do I hide the math component sum and product? If I define them using
< math name=“sum” simplify >
4+5 </ math > then 9 will show up before I quote it.
I’m not able to set up g(x) based on the required conditions; I’m not sure how to link a with b, and c with d. This is what I have so far:
I’ll try to work on it more tmr morning.
Check out the setup component.
I was going to ask the same question as well.
@Xinli_Wang thank you for posting. I would not have been able to finish this assignment if I had not been able to follow along with what you accomplished!
Day 2 (Bennett)
I’ve shared some commented doenetml for day 1 and 2 tasks here - https://beta.doenet.org/activityViewer/1vafr5cLCyD1gmhGpvigCn
Feel free to take a peek if you’d like a hint.
Hi Xinli, I answered all of your questions, and they all were correct! Nice job!
1 Like