Menu

#4756 expand(sin(%e^x)), numer incorrectly replaces %e with numerical value

None
open
nobody
5
1 day ago
1 day ago
No
/* OK: */
(%i1) %e^x, numer;
(%o1) %e^x

/* Also OK: */
(%i2) sin(%e^x), numer;
(%o2) sin(%e^x)

/* Wrong, %e in base with symbolic exponent
   should only be replaced by numerical value
    when %enumer is true: */
(%i3) expand(sin(%e^x)), numer;
(%o3) sin(2.718281828459045^x)

This is caused by simpcheck setting %enumer to $numer, which always seemed odd to me.

Discussion


Log in to post a comment.