This seems like a bug in Library to me: Working example:
matx1 := matrix([[0,x1],[0,0]]) :: Matrix(Expression(Integer)) lib := library("mat.lib") lib.'matx1 := matx1; lib.'matx1 Failing to read back when somehow when there is a non-trivial kernel in the matrix, like sqrt(x), or exp(x), etc.. matx1 := matrix([[0,sqrt(x1)],[0,0]]) :: Matrix(Expression(Integer)) lib := library("mat.lib") lib.'matx1 := matx1; lib.'matx1 lib.'matx1 >> System error: illegal sharp macro character: #\< Line: 139465, Column: 32, File-Position: 13113927 Stream: #<SB-SYS:FD-STREAM for "file /home/tobias/mat.lib/index.KAF" {1003932393}> -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/a452b05e-26d7-48b8-8f43-2460d36abe82n%40googlegroups.com.