Problem with [substitute] button

Jaime shared this problem 5 years ago
New

Hello


When you press the [substitute] button, on a list, that one modifies the original list on the same line, the replacement must be done on a new line.


current

1: list1:={y=x^2,y=2x+3} (input) returns

list1:={y=x^2,y=2x+3} (output)

then

[substitute]

x=3

y=1

returns

1: list1:={y=?,y=?}

substitute x=3, y=1: list1:={9 = 9, 9 = 9}


correct


1: list1:={y=x^2,y=2x+3} (input) returns

list1:={y=x^(2),y=2x+3} (output)

then

[substitute]

x=3

y=1


returns

2: list1 (input)

substitute x=3, y=1: {9 = 9, 9 = 9} (output)


Also as a suggestion, to show a more explicit output, put the argument firts


1: list1:={y=x^2,y=2x+3} (input) returns

list1:={y=x^(2),y=2x+3} (output)

then

[substitute]

x=3

y=1

returns

substitute list1, x=3, y=1 (input)


{9 = 9, 9 = 9} (output)

© 2023 International GeoGebra Institute