Maxima block and variable
问题 I want to display the square of numbers 1 to 5 using block command: expr : 10*i; myList (expr, iMin, iMax) := block( local(expr), print(expr), print(''expr), print( makelist(expr, i, iMin, iMax)), print( makelist(''expr, i, iMin, iMax)) )$ ai : i^2$ myList (ai,1,5); Here's what I get with this code: i^2 10*i [i^2,i^2,i^2,i^2,i^2] [10,20,30,40,50] Why the "expr" variable (with quote quote) in the myList is not the variable "ai"? 回答1: The short answer is that quote-quote is applied only at the