-
Extraction of tangents on a curve
Hi all,
I am drawing a best-fit curve that passes through a number of points and then try to calculate the first derivate and so obtain the tangent line of any point along the curve.
There's lots of public domain code that will calculate a Natural Cubic Spline curve given a set of points. However, given any point on the curve i need to be able to calculate the tangent.
I'm not mathematically inclined and so don't understand the formulas as the heart of the Natural Cubic Spline curve and so could not program in java on my own the code needed to get the derivative of the formula to get the tangent at any point. Is there any public domain code out there that will do this?
I've found one that will do it, but it comes with the limitation that "x" must always be increasing which means the curve can't curve back onto itself. Limiting what i could do with it:
http://www.joma.org/mathDL/4/?pa=con...401&bodyId=378
Any help or redirection would be appreciated
k
Similar Threads
-
Replies: 5
Last Post: 03-22-2001, 07:59 PM
-
By LRiotto in forum VB Classic
Replies: 4
Last Post: 12-10-2000, 06:20 PM
-
By LRiotto in forum VB Classic
Replies: 0
Last Post: 12-03-2000, 11:23 PM
-
By Stephan Craane in forum VB Classic
Replies: 1
Last Post: 08-10-2000, 05:46 PM
-
By Tony Jones in forum VB Classic
Replies: 2
Last Post: 06-21-2000, 10:33 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks