<div dir="ltr">Hi!,<br><br>I want to collect the successive ratios in a collection of numbers in order to appreciate how “fast” they grow. I noticed that the image already implements ArrayedCollection >> incrementFraction, which is almost equal to ArrayedCollection >> derivative:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">incrementFraction<br> "<br>        #(10 12.5 15 20) incrementFraction<br>    "<br>        | displaced answer |<br>  displaced := self class new: self size.<br>       displaced replaceFrom: 2 to: self size with: self startingAt: 1.<br>      displaced at: 1 put: self first.<br>      answer := self copy.<br>answer -= displaced. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">^answer / displaced</blockquote><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">derivative<br>    | displaced answer |<br>  displaced := self class new: self size.<br>       displaced replaceFrom: 2 to: self size with: self startingAt: 1.<br>      displaced at: 1 put: self first - self first.   "Some reasonable zero"<br>      answer := self copy.<br>  answer -= displaced.<br>  ^answer </blockquote></div><div><br></div><div>I think I want something similar, except for the subtraction: </div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">myThing<br><br>| displaced answer |<br>displaced := self class new: self size.<br>displaced replaceFrom: 2 to: self size with: self startingAt: 1.<br>displaced at: 1 put: self first.<br>answer := self copy. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">^answer / displaced</blockquote><div><br>I'll probably need both, since I'm doing exploratory analysis. And while `myThing`, (which could be named `successiveRatios` or something along those lines) can answer if there is a constant or varying growth, `incrementFraction` measures the rate at which the growth itself is scaling.<br><br>Neither `derivative` nor `incrementFraction` nor `Integral` have senders. Juan, maybe you remember why or under which circumstances you added them in 2024? Are there any efforts / packages for numeric or data analysis?<br><br>-- <br>Eze</div></div></div>