Skip to content

Commit 98c9955

Browse files
lahvakdlglin
andauthored
Change object in place rather than creating new copy
Co-authored-by: Danny Glin <dlglin@ucalgary.ca>
1 parent 8c8e42c commit 98c9955

File tree

1 file changed

+2
-1
lines changed
  • OpenProblemLibrary/AlfredUniv/anton8e/chapter1/1.5

1 file changed

+2
-1
lines changed

OpenProblemLibrary/AlfredUniv/anton8e/chapter1/1.5/prob9.pg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ TEXT(beginproblem());
4444

4545
$ans1 = Formula("1/sqrt(x**2 + 1)")->reduce;
4646
$ans2 = Formula("sqrt(1-1/x**2)")->reduce;
47-
$ans2 = $ans2->with(limits=>[1.1, 10], test_at=>[[-2],[-3]]);
47+
$ans2->{limits}=[1.1, 10];
48+
$ans2->{test_at}=[[-2],[-3]];
4849

4950
Context()->texStrings;
5051
BEGIN_TEXT

0 commit comments

Comments
 (0)