Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix unanswerable complex numbers exercises

fix #42389; fix #42381; fix #42377; fix #42376; fix #42371; fix #42369;
fix #42366; fix #42362; fix #42360; fix #42357; fix #42355; fix #42352;
fix #42347; fix #42338; fix #42335; fix #42328; fix #42315; fix #42311;
fix #42306; fix #42303; fix #42297; fix #42295; fix #42293; fix #42292;
fix #42287; fix #42284; fix #42275; fix #42274; fix #42270; fix #42323;
fix #42329; fix #42322; fix #42390; fix #42368; fix #42348; fix #42336;
fix #42331; fix #42300; fix #42288; fix #42286; fix #42330; fix #42308;
fix #42289

Test plan: Test the following seeds locally:
http://localhost:8000/exercises/multiplying_and_dividing_complex_number_polar_forms.html?seed=120&problem=multiply-cplx&debug
http://localhost:8000/exercises/multiplying_and_dividing_complex_number_polar_forms.html?seed=79&problem=divide-cplx&debug
http://localhost:8000/exercises/powers_of_complex_numbers_1.html?debug&problem=0&seed=180

Auditors: cbhl
  • Loading branch information...
commit 99679a32c2de2b0d540bb1d995acc21479e35b69 1 parent ba30c18
@beneater beneater authored
View
4 exercises/multiplying_and_dividing_complex_number_polar_forms.html
@@ -23,7 +23,7 @@
<div class="exercise">
<div class="problems">
<div id="multiply-cplx">
- <div class="vars" data-ensure="ANSWER_REAL &gt;= -10 &amp;&amp; ANSWER_IMAG &gt;= -10 &amp;&amp; ANSWER_REAL &lt;= 10 &amp;&amp; ANSWER_IMAG &lt;= 10">
+ <div class="vars" data-ensure="ANSWER_REAL >= -10 && ANSWER_IMAG >= -10 && ANSWER_REAL <= 10 && ANSWER_IMAG <= 10 && ANSWER_RADIUS > 1 && ANSWER_RADIUS <= 10">
<var id="DENOMINATOR">24</var>
<var id="USE_EULER_FORM">randFromArray( [ true, false ] )</var>
<var id="A_RADIUS">randRange( 1, 7 )</var>
@@ -170,7 +170,7 @@
</div>
<div id="divide-cplx">
- <div class="vars" data-ensure="A_REAL &gt;= -10 &amp;&amp; A_IMAG &gt;= -10 &amp;&amp; A_REAL &lt;= 10 &amp;&amp; A_IMAG &lt;= 10">
+ <div class="vars" data-ensure="A_REAL >= -10 && A_IMAG >= -10 && A_REAL <= 10 && A_IMAG <= 10 && ANSWER_RADIUS > 1 && ANSWER_RADIUS <= 10">
<var id="DENOMINATOR">24</var>
<var id="USE_EULER_FORM">randFromArray( [ true, false ] )</var>
View
2  exercises/powers_of_complex_numbers_1.html
@@ -21,7 +21,7 @@
</head>
<body>
<div class="exercise">
- <div class="vars">
+ <div class="vars" data-ensure="!(BASE_ANGLE === 0 && BASE_RADIUS === 1)">
<var id="DENOMINATOR">24</var>
<var id="BASE_ANGLE_NUMERATOR">randRange( 0, DENOMINATOR - 1 )</var>
<var id="BASE_ANGLE">BASE_ANGLE_NUMERATOR / DENOMINATOR * 2 * PI</var>
Please sign in to comment.
Something went wrong with that request. Please try again.