Ask Your Question

Why does "_" not give the last computed result?

asked 2016-11-14 17:36:35 +0200

I have a few calculations and want the numeric value of the last result in addition to the rational one given. I tried using N(_) but did not get the numeric of the last result but that of a one of the other results. I tried this for a few of the results and always get the same numeric result, the wrong one. Help.

edit retag flag offensive close merge delete


You'll have to tell us exactly which platform you are on, which notebook or other thing ... thanks for all info!

kcrisman gravatar imagekcrisman ( 2016-11-14 19:03:45 +0200 )edit

Sorry. Using a .sagews within Sagemathcloud. I am running macOS Sierra with Safari. I read a question/answer on this site that stated to use "_" to use the last computed result, so I gave it a try, but no go.

briandbrady gravatar imagebriandbrady ( 2016-11-14 20:31:17 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-14 20:59:00 +0200

slelievre gravatar image

updated 2016-11-14 21:16:27 +0200

From the worksheet where this is happening in SageMathCloud, click the "help" button at the top and describe your problem.

The SageMathCloud team will look into the problem.

Last month (2016-10) a problem with underscore in SageMathCloud Sage worksheets was reported on the sage-cloud mailing list as Underscore issue, and was solved as smc issue 1107.

It's not clear whether the problem you are reporting is related to that, though.

edit flag offensive delete link more


I just created a ticket thru SMC for this issue. I tested using "_" with a simple expression and received NameError: name '_' is not defined

briandbrady gravatar imagebriandbrady ( 2016-11-15 03:37:19 +0200 )edit

BTW, I am using using %typeset_mode=True

briandbrady gravatar imagebriandbrady ( 2016-11-15 03:42:41 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-11-14 17:36:35 +0200

Seen: 187 times

Last updated: Nov 14 '16