Ask Your Question
0

@interact : Fix the default rendering

asked 2018-01-18 16:45:46 +0200

Boston gravatar image

updated 2018-01-18 21:06:30 +0200

eric_g gravatar image

I have created the following interact.

It plots the partial sums of a series up to N, et prints out the last one.

The default rendering yields a DeprecationWarning and does not show the partial sum value. When you update the data, the rendering is fine.

How can I fix this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-19 05:08:29 +0200

kcrisman gravatar image

updated 2018-01-19 05:08:54 +0200

Deprecation warnings are not errors, and so show only once per session by default.

The problem is a(n0). Since you only specify it as an expression and not a function, in principle there could have been other variables (e.g. a(n0)+n1-n1) involved. There have been long discussions about this among the developers, but quite some time ago it was decided that one must have the variable.

If you are sure you will always have x as the variable, then you can just add the first line here

a(x)=a
S=S+tuple([a(n0)])

and all should be well. Partial sums are fun, hope you enjoy it!

edit flag offensive delete link more

Comments

Thanks kcrisman!

Boston gravatar imageBoston ( 2018-01-19 21:11:30 +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

1 follower

Stats

Asked: 2018-01-18 16:45:46 +0200

Seen: 187 times

Last updated: Jan 19 '18