# Help with coding

**URL:** <https://cl.desmos.com/t/help-with-coding/2757>\
**Category:** Questions\
**Created:** [February 25, 2021, 12:04am UTC](https://cl.desmos.com/t/help-with-coding/2757 "2021-02-25T00:04:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frances\_Janowiak](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/frances_janowiak/32/1410_2.png) [@Frances\_Janowiak](https://cl.desmos.com/u/Frances_Janowiak)\
**Post date:** [February 25, 2021, 12:04am UTC](https://cl.desmos.com/t/help-with-coding/2757/1 "2021-02-25T00:04:24Z")

</div>

I am hoping someone can assist me.  
I found this great slide [Factoring Quadratics • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6036e8c961177e4a829a1073)  
It is solving quadratic equations. Right now the code is for when a = 1.

My husband and I have spent hours trying to modify the code to solve when a \> 1. Any assistance is greatly appreciated.

Also, is there a way to use a random number generator and a simple function to eliminate the need for the graph?

Still new at coding. Thank you for your time and help!

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [February 25, 2021, 1:03am UTC](https://cl.desmos.com/t/help-with-coding/2757/2 "2021-02-25T01:03:24Z")

</div>

I usually randomize coefficients and constants for the factored form (i.e. a, b, c, d in (ax+b)(cx+d)). Then, calculate those for expanded form (i.e. A=ac, B=ad+bc, and C=bd). From that use Ax+By+C for displaying the problem.

You’ll need to do something similar to `eq4` and `eq5` in the note CL for Ax^2 to deal with a coefficient of 1 or -1.

Also you can move the graph below the other components to make it one column, and then there won’t be a blank half of the slide.

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [February 25, 2021, 1:35am UTC](https://cl.desmos.com/t/help-with-coding/2757/3 "2021-02-25T01:35:55Z")

</div>

I pretty much rewrote it. Graphs can be nice because calculations can get hairy in the CL. I kind of rushed it, so I may have missed something, but wanted to get it out there.

> **[\[Copy of\] Factoring Quadratics • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6036f4d72a56df51ec5787d2)**
>
> by Daniel Grubbs
