Click here to Skip to main content
15,889,116 members

Comments by GAMerritt (Top 3 by date)

GAMerritt 31-Jul-11 9:31am View    
Deleted
That's a sharp observation; but continued fractions are even more important in making use of GetRational() than they are in the method itself. Making substitutions of frac(1/X'), (1/(1+X')), or (1-X') using both the numerator and denominator of ratios returned by the function as further inputs to the function can identify rational factors in cases where you don't think there are any; and although you're working with a discrete representation you can still come close enough to identifying them that it's often worth it to try using it as a last resort to find the common factors in a series of coefficients you're working with. I've used GetRational() to quickly find continued fraction expansions for values using substitutions like these when I couldn't find a known expression in one of my reference books. And that's from doing it by hand using a programmable calculator.
GAMerritt 31-Jul-11 9:17am View    
Deleted
When working with un-normalized oblique coordinate systems, the basis vectors contain proportionality factors which may be factored out by various methods, depending on your choice of covariant or contravariant coefficients; and I've found that this method, along with a couple of others I use frequently which perform factorizations of square roots and their sums, can simplify the work involved in reducing expressions I'm working out on paper. This isn't something most programmers spend their time doing, so I left the idea out of my comments and just included the code behind it. I figure they're not interested and don't want to hear about it anyway; but at least the rational approximation method should mean something to them, whether they're interested in any more convoluted topics or not.
GAMerritt 23-Jan-11 11:50am View    
That's a good idea, but I wanted to avoid having to deal with the .rtf tags because that might mean having to add a filter for each type of embedded resource. I wondered if there was any way to get the info aka. SCROLLINFO but without having scrollbars enabled.