TeamBasedInquiryLearning / precalculus

ARCHIVED - Materials for running a Team-Based Inquiry Learning precalculus course (in active development!)
https://teambasedinquirylearning.github.io/precalculus/
Other
4 stars 0 forks source link

PR4_3changes_longdivision #213

Closed sheppardw closed 5 months ago

StevenClontz commented 5 months ago

@sheppardw pull my latest commit into your codespace branch to get the fix for your long division (which is basically all the stuff @siwelwerd suggested, thanks Drew).

sheppardw commented 5 months ago

I sent a draft version here for PR-4Sec3. The long division just needs some minor changes. I put brackets where I need blank squares. Requests: -I need the code to make a blank square. I found a couple of examples for PreText but am not sure which one to use or how to incorporate this into my code. Please advise. :-) -I could not get the divisor to appear properly without putting parentheses around it, but I am sure there is a way to do this. Please advise. :-) -I need to find the code for synthetic division, which would mainly be a vertical line and a horizontal line, but I want to include square blanks in this as well. I will keep looking but if you know of an easy way to incorporate this into the code, please advise. :-)

siwelwerd commented 5 months ago

I need to find the code for synthetic division, which would mainly be a vertical line and a horizontal line

This should look a whole lot like the long division, but just swapping out a ) for a |.

I need the code to make a blank square

I feel like we have a hack to put squares around things in the Linear Algebra book (we put squares around pivots in matrices). So that can likely be copied. Another option is to use a ? instead of a blank square, which is maybe more consistent with what we have done elsewhere.

sheppardw commented 5 months ago

Ok, the ? is easy to do! For the synthetic, I do not know how to reverse the vertical line to be above the horizontal instead of below though. I will look at it and see. If you know how to do this already, please let me know. Thank you!!

sheppardw commented 5 months ago

To move the line below, instead of "raise" type "lower" ? Just guessing.

sheppardw commented 5 months ago

Also how do I make the entire long division problem appear larger? I tried changing some numbers in the code but could not figure out what number to change for the size. Thanks!

sheppardw commented 5 months ago

nevermind on the raising and lowering...use the negative... got it!

sheppardw commented 5 months ago

Figured out the sizing issue too!

StevenClontz commented 5 months ago

Sounds good - either tag me back in if you want me to tweak anything, or mark this as ready for review if you think you've got it figured out. 😄

sheppardw commented 5 months ago

I still need to figure out spacing in the array because I was having trouble with that and I feel like the synthetic division, the vertical line, can look better. So I need help with those 2 things please. Other than that, this is ready for review. So I will wait to fix these issues first.

StevenClontz commented 5 months ago

Can you sketch what you want as an image and send that to me?

sheppardw commented 5 months ago

I can...If you look at the current code, and just bring the vertical line down to touch the horizontal at a clean corner, that is it!

StevenClontz commented 5 months ago

I can...If you look at the current code, and just bring the vertical line down to touch the horizontal at a clean corner, that is it!

Gotcha - I'll take a look.

StevenClontz commented 5 months ago

Actually I'm still not clear what you're asking. This is what I see:

image

Can you draw what you're looking for?

siwelwerd commented 5 months ago

@sheppardw Are you still working on this one?

sheppardw commented 5 months ago

How can I view the changes or does this last change have to be approved first before I can see it to mark it ready for review? Thanks!!

StevenClontz commented 5 months ago

The red X by the "Test Build" reveals that we have an error: critical: ID example-synthetic-division-coefficients already defined, line 305, column 77. So we need to rename the second xml:id="example-synthetic-division-coefficients" to something else.

To do this (and preview the changes to make sure they are to your satisfaction), you can open this branch in a Codespace. If you have an existing Codespace, I'd change the branch like so:

image

image

sheppardw commented 5 months ago

Thank you! I am still not seeing the changes to the synthetic division coding when I go to the branch SheppardPR4Sec3LongDivision. Once I click on the changes that you suggested, is it automatically included? Thanks!

StevenClontz commented 5 months ago

Try clicking the 🔃 icon next to the branch name in this picture:

image

sheppardw commented 5 months ago

Could it be because I accidentally put another section (edits for PR 4-3) on this branch? It will not go forward without dealing with that? I don't need that one. I submitted it correctly on another branch. Hope this makes sense... :-/

StevenClontz commented 5 months ago

Gotcha. Paste this into a terminal.

git fetch origin
git reset --hard origin/SheppardPR4Sec3LongDivision
sheppardw commented 5 months ago

Thank you! I realize I could not visually see the changes until the code was corrected. Got it!! :-)

StevenClontz commented 5 months ago

Oh shoot, I should have thought of that. Yes, it won't build if the XML is malformed so you wouldn't see the changes.

siwelwerd commented 5 months ago

I couldn't follow the logic of the synthetic division, so I removed it from this PR so that we can go ahead and mark this section as done. We can consider a future PR that adds it back in with better scaffolding.