Ask Your Question
0

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

asked 10 years ago

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
Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 10 years ago

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?

Preview: (hide)
link
0

answered 10 years ago

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!

Preview: (hide)
link

Comments

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

kcrisman gravatar imagekcrisman ( 10 years ago )

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: 10 years ago

Seen: 447 times

Last updated: Oct 23 '14