Continued Fractions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Continued Fractions

philippeback
Do we have anything related to continued fractions in Pharo?


I need that to match rectanges to aspect ratios etc.

TIA
Phil
Reply | Threaded
Open this post in threaded view
|

Re: Continued Fractions

philippeback
Ah, I see there is something in the Numerical Methods book. :rolleyes:

Phil

On Sun, Sep 17, 2017 at 8:30 PM, [hidden email] <[hidden email]> wrote:
Do we have anything related to continued fractions in Pharo?


I need that to match rectanges to aspect ratios etc.

TIA
Phil

Reply | Threaded
Open this post in threaded view
|

Re: Continued Fractions

wernerk
Hi Phil,
yes, in polymath it is the the object PMContinuedFraction.
werner

On 09/17/2017 08:38 PM, [hidden email] wrote:
Ah, I see there is something in the Numerical Methods book. :rolleyes:

Phil

On Sun, Sep 17, 2017 at 8:30 PM, [hidden email] <[hidden email]> wrote:
Do we have anything related to continued fractions in Pharo?


I need that to match rectanges to aspect ratios etc.

TIA
Phil


Reply | Threaded
Open this post in threaded view
|

Re: Continued Fractions

Stephane Ducasse-3
Hi phil

just out of sane curiosity do you have a pointer on ratio and
rectangle and continued fraction?

Stef

On Mon, Sep 18, 2017 at 12:40 PM, werner kassens <[hidden email]> wrote:

> Hi Phil,
> yes, in polymath it is the the object PMContinuedFraction.
> werner
>
>
> On 09/17/2017 08:38 PM, [hidden email] wrote:
>
> Ah, I see there is something in the Numerical Methods book. :rolleyes:
>
> Phil
>
> On Sun, Sep 17, 2017 at 8:30 PM, [hidden email] <[hidden email]>
> wrote:
>>
>> Do we have anything related to continued fractions in Pharo?
>>
>> https://en.wikipedia.org/wiki/Continued_fraction
>>
>> I need that to match rectanges to aspect ratios etc.
>>
>> TIA
>> Phil
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Continued Fractions

philippeback
I need to match print ads sizes from various publications with a standardized list of ratios (e.g. 2:1, 1:1, 2:7...) plus a bunch of other metrics.

So  a rect of 1543@331 gives a float value that has can be best approximated by a continued fraction approach.

But there are other complications. Now I am using a lookup table and try to match with just a distance.

I am using DataFrame and hopefully more Roassal for all of this.

Pharo can be a good tool to manage the object model of this problem space. I am prototyping something. We'll see how far I can get.

Phil

On Tue, Sep 19, 2017 at 9:30 PM, Stephane Ducasse <[hidden email]> wrote:
Hi phil

just out of sane curiosity do you have a pointer on ratio and
rectangle and continued fraction?

Stef

On Mon, Sep 18, 2017 at 12:40 PM, werner kassens <[hidden email]> wrote:
> Hi Phil,
> yes, in polymath it is the the object PMContinuedFraction.
> werner
>
>
> On 09/17/2017 08:38 PM, [hidden email] wrote:
>
> Ah, I see there is something in the Numerical Methods book. :rolleyes:
>
> Phil
>
> On Sun, Sep 17, 2017 at 8:30 PM, [hidden email] <[hidden email]>
> wrote:
>>
>> Do we have anything related to continued fractions in Pharo?
>>
>> https://en.wikipedia.org/wiki/Continued_fraction
>>
>> I need that to match rectanges to aspect ratios etc.
>>
>> TIA
>> Phil
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Continued Fractions

Stephane Ducasse-3
I wish you a lot of luck on this experience!


On Tue, Sep 19, 2017 at 10:51 PM, [hidden email] <[hidden email]> wrote:

> I need to match print ads sizes from various publications with a
> standardized list of ratios (e.g. 2:1, 1:1, 2:7...) plus a bunch of other
> metrics.
>
> So  a rect of 1543@331 gives a float value that has can be best approximated
> by a continued fraction approach.
>
> But there are other complications. Now I am using a lookup table and try to
> match with just a distance.
>
> I am using DataFrame and hopefully more Roassal for all of this.
>
> Pharo can be a good tool to manage the object model of this problem space. I
> am prototyping something. We'll see how far I can get.
>
> Phil
>
> On Tue, Sep 19, 2017 at 9:30 PM, Stephane Ducasse <[hidden email]>
> wrote:
>>
>> Hi phil
>>
>> just out of sane curiosity do you have a pointer on ratio and
>> rectangle and continued fraction?
>>
>> Stef
>>
>> On Mon, Sep 18, 2017 at 12:40 PM, werner kassens <[hidden email]>
>> wrote:
>> > Hi Phil,
>> > yes, in polymath it is the the object PMContinuedFraction.
>> > werner
>> >
>> >
>> > On 09/17/2017 08:38 PM, [hidden email] wrote:
>> >
>> > Ah, I see there is something in the Numerical Methods book. :rolleyes:
>> >
>> > Phil
>> >
>> > On Sun, Sep 17, 2017 at 8:30 PM, [hidden email] <[hidden email]>
>> > wrote:
>> >>
>> >> Do we have anything related to continued fractions in Pharo?
>> >>
>> >> https://en.wikipedia.org/wiki/Continued_fraction
>> >>
>> >> I need that to match rectanges to aspect ratios etc.
>> >>
>> >> TIA
>> >> Phil
>> >
>> >
>> >
>>
>>
>