# forum.alglib.net

ALGLIB forum
 It is currently Fri Sep 22, 2023 10:02 pm

 All times are UTC

### Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: numerical integration on excel vbaPosted: Fri May 28, 2010 4:30 am

Joined: Fri May 28, 2010 4:04 am
Posts: 2
hi, I'm new to excel vba programming, so i was looking for a complete aplied example using de vb6 package, what I need is to define and integrate a function F(x) on a finite interval [a,b].
for example:

Thank you very much!!!

Top

 Post subject: Re: numerical integration on excel vbaPosted: Fri May 28, 2010 7:24 am

Joined: Fri May 07, 2010 7:06 am
Posts: 891
You should use autogk.bas unit, which requires 16 other units: ap, tsort, hblas, reflections, creflections, sblas, ablasf, ablas, ortfac, blas, rotations, hsschur, evd, gammafunc, gq, gkq.

Use it as follows:
Code:
Dim State As AutoGKState
Dim V As Double
Dim Rep As AutoGKReport

'
' f(x) = 3*x^2 + x/2
'
Call AutoGKSmooth(3, 5, State)
Do While AutoGKIteration(State)
State.F = 3*State.X*State.X + 0.5*State.X
Loop
Call AutoGKResults(State, V, Rep)

' Now V contains result

Top

 Post subject: Re: numerical integration on excel vbaPosted: Fri May 28, 2010 4:29 pm

Joined: Fri May 28, 2010 4:04 am
Posts: 2
It worked like a charm!!!

thank you.! Great project.

Top

 Post subject: Re: numerical integration on excel vbaPosted: Tue Feb 24, 2015 12:21 pm

Joined: Tue Feb 24, 2015 12:17 pm
Posts: 1
I'm developing an application in VB6 that should interpolate some specific points entered by the user (click with mouse) on a picture control.

_________________
kaleem

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 4 posts ]

 All times are UTC

#### Who is online

Users browsing this forum: No registered users and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: