15,902,492 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.