Le mardi 27 février 2018 17:08:35 UTC+1, Erik Bray a écrit : > > > Another approach I've seen to this sort of thing that works completely > locally is to pre-generate some data based on the range of inputs for > the widgets, and bundle that all up so that there's no actual live > computations, but that's obviously more restrictive in other ways. >
It is possible to run completely locally without pre-generating data if the computation engine is entirely compiled to Javascript, like this giac example <http://www-fourier.ujf-grenoble.fr/%7eparisse/xcasen.html#filename=parisseb%40orange.fr%40%20%20session&from=parisseb%40orange.fr&python=0&+//Cumulated%20distribution%20between%202%20values%20$a$%20and%20$b$.%0aFor%20another%20law,%20e.g.%20exponentiald(1),%20take%20care%20of%20the%20values%20of%20$a$%20and%20$b$%20and%20modify%20%3Ctt%3ex=-5..5%3C/tt%3e%20for%20example%20to%20%3Ctt%3ex=0..6%3C/tt%3e.&+law%3A%3Dnormald(0%2C1)&*a,-2,-5,5,0.125&*b,0,-5,5,0.125&+plotarea(law(x)%2Cx%3Dmin(a%2Cb)..max(a%2Cb))%3B%0Aplotfunc(law(x)%2Cx%3D-5..5)%3B%0A&+//Symmetric%20confidence%20interval%20for%20the%20law%20with%20$alpha$%20risk.&+alpha%3A%3D0.05%3A%3B%0Aicdf(law%2Calpha%2F2)%2Cicdf(law%2C1-alpha%2F2)&> (click on Doc for more examples). -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.