Author Topic: numerical analysis  (Read 3233 times)

0 Members and 1 Guest are viewing this topic.

Offline benx

  • Newbie
  • Posts: 3
    • View Profile
numerical analysis
« on: May 24, 2021, 04:27:06 pm »
hello,
i am interested by numerical analysis and linear algebra implemented in QB.
Is there any link for this subject , solving matrices, finding roots for non linear equation , etc ...

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: numerical analysis
« Reply #1 on: May 25, 2021, 12:21:05 pm »
Welcome benx,

I miss my old math books, they would be perfect with QB64 coding!

You would need some practice doing graphics in QB64, Basic has funny coordinate system, y axis increases going down and origin (0,0) at top left corner.
It could be made like what we learned in math and science classes with WINDOW command but that is where practice is needed: points, lines and full circles would be fine for plotting, PMAP() needed to translate mouse clicks...

Hmm... we should hunt for some on-line links, I know there were some Basic Books from late 80's floating around with math algo's. Need examples, demos that come with Matrix stuff, to learn how to use these math tools.
« Last Edit: May 25, 2021, 01:14:54 pm by bplus »

Offline benx

  • Newbie
  • Posts: 3
    • View Profile
Re: numerical analysis
« Reply #2 on: May 25, 2021, 03:03:12 pm »
Hello bplus,
I don't understand your replay ... , you must joking !
Numerical analysis use several method to solve math problems in science and engineering .
i have no difficult for graphics, even for drawing any math function ...
Functions implemented under Qbasic must exist, i found have found only one function to "calculate trace and Euclidean norm of matrix" posted by BSpinoza.
regards.



Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: numerical analysis
« Reply #3 on: May 25, 2021, 03:16:04 pm »
OK @benx if you've plotted math functions with old QB then you know.

Let's see what you've got for general Quadratic with plug-in A,B,C if you are up for challenge?
Plot x from -100 to +100

Here's the function:
Code: QB64: [Select]
  1. Function Quadradic (A, B, C, x) ' using default single type
  2.     Quadradic = x * x * A + x * B + C
  3.  
« Last Edit: May 25, 2021, 04:10:26 pm by bplus »

Offline NOVARSEG

  • Forum Resident
  • Posts: 509
    • View Profile
Re: numerical analysis
« Reply #4 on: May 26, 2021, 12:00:35 am »
numerical analysis is very important in proving hard to solve integrals

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: numerical analysis
« Reply #5 on: May 26, 2021, 12:38:43 am »
@BSpinoza, really good link! It's like the motherlode! judging by titles.


Offline benx

  • Newbie
  • Posts: 3
    • View Profile
Re: numerical analysis
« Reply #6 on: May 26, 2021, 04:42:08 am »
Quote
In the internet you can find some things in QB for numerical analysis, but most of this programs are in old school programming style. Jean-Pierre Moreau has a big collection of such programs  http://jean-pierre.moreau.pagesperso-orange.fr/basic.html, which are often compatible to QB64.

Thank you so much  BSpinoza all what i need !