Ask Your Question
0

why lim((x^2-x+1)^(1/2)+x,x=-oo,dir='below') is red error

asked 2014-10-22 13:45:41 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

x=-oo, negative infinity,the answei is appear,but red error,1/2 is right?

lim((x^2-x+1)^(1/2)+x,x=-oo,dir='below')

Error in lines 0-2
Traceback (most recent call last):
  File "/projects/9e8c4ed8-0b57-4535-b8f1-a0d0ef1b015b/.sagemathcloud/sage_server.py", line 841, in execute
    exec compile(block+'\n', '', 'single') in namespace, locals
  File "<string>", line 1
    )
    ^
SyntaxError: invalid syntax
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-10-22 14:26:35 +0100

kcrisman gravatar image

Proper syntax is

lim((x^2-x+1)^(1/2)+x,x=-oo,dir='left')

And so you got not an error, but a deprecation warning for the 'below' which you used.

Not sure about the error you are pasting, where you must have had an extra paren. I think in this case the dir keyword probably is ignored; what would it mean to approach -oo from the left?

edit flag offensive delete link more
0

answered 2014-10-23 11:34:45 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

thank you very much!

it run OK!

edit flag offensive delete link more

Comments

Great! Don't forget you can *comment* instead of answer :)

kcrisman gravatar imagekcrisman ( 2014-10-23 21:14:35 +0100 )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

1 follower

Stats

Asked: 2014-10-22 13:45:41 +0100

Seen: 432 times

Last updated: Oct 23 '14