New Posts  All Forums:Forum Nav:

Calculus in Delphi/C#/C++

post #1 of 10
Thread Starter 
I want to write a program that can differentiate/integrate functions.
Opinions? tongue.gif
Any inbuilt functions or will I have to start from scratch?
I have the most experience in delphi so I assume that would be easiest for me
wish me luck confused.gif
AzuraChan
(13 items)
 
Haruna
(7 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II x6 1055T Asus M4A88TD-V Evo/Usb3 EVGA GTX460 1GB SC + 9800GT Phsyx 2x2GB Corsair 1333MHZ 
Hard DriveOSMonitorPower
6.8TB Total w7 + ubuntu 19" something Seasonic S12II 520W 
Case
modded antec 902 
CPUGraphicsRAMHard Drive
I7 3630QM GTX660M 2GB + HD4000 8GB 1600Mhz 1TB  
Optical DriveOSCase
Blu Ray thing Win8 64bit Lenovo Y580 
  hide details  
Reply
AzuraChan
(13 items)
 
Haruna
(7 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II x6 1055T Asus M4A88TD-V Evo/Usb3 EVGA GTX460 1GB SC + 9800GT Phsyx 2x2GB Corsair 1333MHZ 
Hard DriveOSMonitorPower
6.8TB Total w7 + ubuntu 19" something Seasonic S12II 520W 
Case
modded antec 902 
CPUGraphicsRAMHard Drive
I7 3630QM GTX660M 2GB + HD4000 8GB 1600Mhz 1TB  
Optical DriveOSCase
Blu Ray thing Win8 64bit Lenovo Y580 
  hide details  
Reply
post #2 of 10
Is there a reason why you want to do this whereas Malab has quite a bit of these functions already built into it.
post #3 of 10
You will only need to use basic math operations, thinking of how you are going to read it in is the hardest part really.
^3
(11 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i7 5930K  EVGA x99 Micro EVGA GTX 980 SC ACX 16GB Corsair DDR4 Vengeance LPX Black PC4-21300 
Hard DriveCoolingOSMonitor
500GB Samsung 840 EVO H105 Win 10 ASUS ROG PG279 
KeyboardPowerCase
Ducky Shine 1 MX-Red Corsair AX 860i  Fractal Design Node 804 Black 
CPUGraphicsRAMHard Drive
Core i7 @ 2.6  GT650 16GB of 1600 MHz DDR3L SDRAM 256GB SSD 
OSMonitorKeyboard
Mac OSX Lion Retina Display US layout 
  hide details  
Reply
^3
(11 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i7 5930K  EVGA x99 Micro EVGA GTX 980 SC ACX 16GB Corsair DDR4 Vengeance LPX Black PC4-21300 
Hard DriveCoolingOSMonitor
500GB Samsung 840 EVO H105 Win 10 ASUS ROG PG279 
KeyboardPowerCase
Ducky Shine 1 MX-Red Corsair AX 860i  Fractal Design Node 804 Black 
CPUGraphicsRAMHard Drive
Core i7 @ 2.6  GT650 16GB of 1600 MHz DDR3L SDRAM 256GB SSD 
OSMonitorKeyboard
Mac OSX Lion Retina Display US layout 
  hide details  
Reply
post #4 of 10
Thread Starter 
Quote:
Originally Posted by Arinoth;14489061 
Is there a reason why you want to do this whereas Malab has quite a bit of these functions already built into it.
My dad Is offering me a nice sig upgrade if I manage so biggrin.gif
Quote:
Originally Posted by andrewmchugh;14489073 
You will only need to use basic math operations, thinking of how you are going to read it in is the hardest part really.
Yeah the actual derivative/integral process will be simple
the gui and interpretation is what will be tricky
AzuraChan
(13 items)
 
Haruna
(7 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II x6 1055T Asus M4A88TD-V Evo/Usb3 EVGA GTX460 1GB SC + 9800GT Phsyx 2x2GB Corsair 1333MHZ 
Hard DriveOSMonitorPower
6.8TB Total w7 + ubuntu 19" something Seasonic S12II 520W 
Case
modded antec 902 
CPUGraphicsRAMHard Drive
I7 3630QM GTX660M 2GB + HD4000 8GB 1600Mhz 1TB  
Optical DriveOSCase
Blu Ray thing Win8 64bit Lenovo Y580 
  hide details  
Reply
AzuraChan
(13 items)
 
Haruna
(7 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II x6 1055T Asus M4A88TD-V Evo/Usb3 EVGA GTX460 1GB SC + 9800GT Phsyx 2x2GB Corsair 1333MHZ 
Hard DriveOSMonitorPower
6.8TB Total w7 + ubuntu 19" something Seasonic S12II 520W 
Case
modded antec 902 
CPUGraphicsRAMHard Drive
I7 3630QM GTX660M 2GB + HD4000 8GB 1600Mhz 1TB  
Optical DriveOSCase
Blu Ray thing Win8 64bit Lenovo Y580 
  hide details  
Reply
post #5 of 10
Well elementary functions (functions of which you know the anti-derivative and derivative) would be easy to integrate and differentiate using the appropriate formulas. You could then represent more mathematically tedious functions as infinite series and integrate/differentiate term by term (like a polynomial). That's also the way calculators work.

I'm not really a star in programming but if you want to evaluate integrals and derivatives in dimension R3, MATLAB would be the obvious choice like Arinoth suggested.
Pernod
(28 items)
 
Oleo
(14 items)
 
The Sidewinder
(18 items)
 
CPUCPUMotherboardGraphics
Intel Xeon E5-4650 Intel Xeon E5-4650 Asus Z9PE-D8 WS GeForce GTX 780 Ti 
RAMRAMHard DriveHard Drive
4 x 4GB Corsair Dominator Platinum 4 x 4GB Corsair Dominator Platinum Samsung Spinpoint F3 2TB Sandisk Ultra 64GB 
Hard DriveCoolingCoolingCooling
mushkin Triactor 240GB EK Supremacy Nickel/Plexi EK Supremacy Nickel/Plexi TFC XChanger 360 
CoolingCoolingCoolingOS
Koolance RP452X2 Swiftech MCP-655 Corsair SP120 "QE" Windows 10 Enterprise x64 
OSMonitorMonitorMonitor
openSUSE Leap 42.1 x64 Dell U2412M Dell U2412M Acer P241W-d 
KeyboardPowerCaseMouse
Ducky 1008 w/ Cherry MX Blue Coolermaster Silent Pro M2 1.5kW Silverstone Raven RV01B-W Microsoft Sidewinder X5 
AudioAudioAudioOther
Asus Xonar DX Beyerdynamic DT 880 Premium AudioEngine A2 (2.0) Wacom Intuos Pen & Touch 
CPUMotherboardGraphicsRAM
Core i7 2600K @5.2  MSI MPower Z77 GeForce GTX 470 Corsair Vengeance 2000MHz C10 
Hard DriveCoolingCoolingCooling
Samsung Spinpoint F1 XSPC Raystorm EK Spin Bay Res Clear mcp-350 (ddc1) 
CoolingCoolingOSOS
XSPC EX120 XSPC EX240 openSUSE 12.3 x64 elementaryOS 0.3 (Freya) x64 
PowerCase
Corsair TX750 750W Lian Li A05NB 
CPUMotherboardGraphicsRAM
Intel C2Q Q9550 Asus P5G41C-M LX GeForce GTX 470 Corsair XMS2 DDR2 800 
Hard DriveHard DriveHard DriveHard Drive
Seagate LP 500GB Crucial M4 128GB WD Red 2TB WD Red 4TB 
CoolingOSMonitorPower
Scythe Big Shuriken w/ Silverstone Suscool 121 Windows 10 Home x64 Sony Bravia KDL-37EX500 Antec TP650 New 
CaseOther
Lian Li V351B Silverstone Suscool 121 120mm case fans 
  hide details  
Reply
Pernod
(28 items)
 
Oleo
(14 items)
 
The Sidewinder
(18 items)
 
CPUCPUMotherboardGraphics
Intel Xeon E5-4650 Intel Xeon E5-4650 Asus Z9PE-D8 WS GeForce GTX 780 Ti 
RAMRAMHard DriveHard Drive
4 x 4GB Corsair Dominator Platinum 4 x 4GB Corsair Dominator Platinum Samsung Spinpoint F3 2TB Sandisk Ultra 64GB 
Hard DriveCoolingCoolingCooling
mushkin Triactor 240GB EK Supremacy Nickel/Plexi EK Supremacy Nickel/Plexi TFC XChanger 360 
CoolingCoolingCoolingOS
Koolance RP452X2 Swiftech MCP-655 Corsair SP120 "QE" Windows 10 Enterprise x64 
OSMonitorMonitorMonitor
openSUSE Leap 42.1 x64 Dell U2412M Dell U2412M Acer P241W-d 
KeyboardPowerCaseMouse
Ducky 1008 w/ Cherry MX Blue Coolermaster Silent Pro M2 1.5kW Silverstone Raven RV01B-W Microsoft Sidewinder X5 
AudioAudioAudioOther
Asus Xonar DX Beyerdynamic DT 880 Premium AudioEngine A2 (2.0) Wacom Intuos Pen & Touch 
CPUMotherboardGraphicsRAM
Core i7 2600K @5.2  MSI MPower Z77 GeForce GTX 470 Corsair Vengeance 2000MHz C10 
Hard DriveCoolingCoolingCooling
Samsung Spinpoint F1 XSPC Raystorm EK Spin Bay Res Clear mcp-350 (ddc1) 
CoolingCoolingOSOS
XSPC EX120 XSPC EX240 openSUSE 12.3 x64 elementaryOS 0.3 (Freya) x64 
PowerCase
Corsair TX750 750W Lian Li A05NB 
CPUMotherboardGraphicsRAM
Intel C2Q Q9550 Asus P5G41C-M LX GeForce GTX 470 Corsair XMS2 DDR2 800 
Hard DriveHard DriveHard DriveHard Drive
Seagate LP 500GB Crucial M4 128GB WD Red 2TB WD Red 4TB 
CoolingOSMonitorPower
Scythe Big Shuriken w/ Silverstone Suscool 121 Windows 10 Home x64 Sony Bravia KDL-37EX500 Antec TP650 New 
CaseOther
Lian Li V351B Silverstone Suscool 121 120mm case fans 
  hide details  
Reply
post #6 of 10
Ah I wish you the best of luck then, though C language isn't known to be the best/most accurate mathematical language. At work for all of our heavy/precise number crunching (Nuclear Control Room Simulator) we use Pascal, then transfer the results into our C++ interface/gui.
post #7 of 10
Thread Starter 
Quote:
Originally Posted by Arinoth;14489159 
Ah I wish you the best of luck then, though C language isn't known to be the best/most accurate mathematical language. At work for all of our heavy/precise number crunching (Nuclear Control Room Simulator) we use Pascal, then transfer the results into our C++ interface/gui.
eek.gif wow
Quote:
Originally Posted by TheBlademaster01;14489158 
Well elementary functions (functions of which you know the anti-derivative and derivative) would be easy to integrate and differentiate using the appropriate formulas. You could then represent more mathematically tedious functions as infinite series and integrate/differentiate term by term (like a polynomial). That's also the way calculators work.

I'm not really a star in programming but if you want to evaluate integrals and derivatives in dimension R3, MATLAB would be the obvious choice like Arinoth suggested.
yeah I`l mess around I have till december biggrin.gif
AzuraChan
(13 items)
 
Haruna
(7 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II x6 1055T Asus M4A88TD-V Evo/Usb3 EVGA GTX460 1GB SC + 9800GT Phsyx 2x2GB Corsair 1333MHZ 
Hard DriveOSMonitorPower
6.8TB Total w7 + ubuntu 19" something Seasonic S12II 520W 
Case
modded antec 902 
CPUGraphicsRAMHard Drive
I7 3630QM GTX660M 2GB + HD4000 8GB 1600Mhz 1TB  
Optical DriveOSCase
Blu Ray thing Win8 64bit Lenovo Y580 
  hide details  
Reply
AzuraChan
(13 items)
 
Haruna
(7 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II x6 1055T Asus M4A88TD-V Evo/Usb3 EVGA GTX460 1GB SC + 9800GT Phsyx 2x2GB Corsair 1333MHZ 
Hard DriveOSMonitorPower
6.8TB Total w7 + ubuntu 19" something Seasonic S12II 520W 
Case
modded antec 902 
CPUGraphicsRAMHard Drive
I7 3630QM GTX660M 2GB + HD4000 8GB 1600Mhz 1TB  
Optical DriveOSCase
Blu Ray thing Win8 64bit Lenovo Y580 
  hide details  
Reply
post #8 of 10
Interpretation is very easy if you know how to use reverse polish notation (RPN). Just learn that, and you will learn how to easily input functions and parse them.

In other words, you should take the functions piece by piece and place operators onto a call stack, and the operands onto another. It's quite simple actually.

Alot of old school calculators do this.

Using RPN to parse the data, you should be able to efficiently be able to find a solution by applying the operations as you normally would.

As for an interface, you could use something like C++ or C# and use a forms creator to make a basic calculator interface; and then have the backed of your project be a more precise mathematical language such as pascal or matlab. All you would need is a way to link your interface to your back end calculator.
Edited by CovertCover - 8/6/11 at 3:05pm
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7-930 D0 3.8Ghz ASUS P6T SE PowerColor HD5870 1GB 6GB Corsair Dominator XMS3 8-8-8-20 1200Mhz 
Hard DriveOSMonitorPower
1TB Wester Digital Windows 7 Home 64bit Acer 23" XFX 850w Black Edtion 
Case
HAF 932 
  hide details  
Reply
post #9 of 10
Quote:
Originally Posted by nukefission;14489209 
eek.gif wow

Yeah, but when you use it to train control room operators you want it to be as accurate as possible
post #10 of 10
Dunno if you're already on it, but anyway it'S never too late for a Delphi dev to help an another one thumb.gif

a lib and some explanations for integrate polynomial interpolation:
http://www.alglib.net/interpolation/polynomial.php

Another source on the subject:
http://www.shokhirev.com/nikolai/abc/sciprog/delphi1.html
Ripping Beast
(21 items)
 
  
CPUMotherboardGraphicsRAM
1950x threadripper @3.7Ghz/1.25V ASUS ROG Zenith Extreme X399 Gigabyte Windforce 960 OC 4GB 64gb (8 sticks) DDR4 G.Skill tridentZ 3200 
Hard DriveHard DriveHard DriveHard Drive
plextor SSD 128 gb Intel 750 SSD NVMe (PCIe) 400gb Intel 750 SSD NVMe (PCIe) 400gb Intel 535 Serie 480gb 
Hard DriveHard DriveHard DriveCooling
western digital black 1tb western digital black 1tb western digital green 2tb Corsair Hydro H100i v2 
OSMonitorMonitorKeyboard
Windows 10 - 2016 LTSB 24" ASUS PA246Q 24" dell ultrasharp U2412M filco majestouch 2 
PowerCaseMouse
850W EVGA G3 HAF-X logitech g600 
  hide details  
Reply
Ripping Beast
(21 items)
 
  
CPUMotherboardGraphicsRAM
1950x threadripper @3.7Ghz/1.25V ASUS ROG Zenith Extreme X399 Gigabyte Windforce 960 OC 4GB 64gb (8 sticks) DDR4 G.Skill tridentZ 3200 
Hard DriveHard DriveHard DriveHard Drive
plextor SSD 128 gb Intel 750 SSD NVMe (PCIe) 400gb Intel 750 SSD NVMe (PCIe) 400gb Intel 535 Serie 480gb 
Hard DriveHard DriveHard DriveCooling
western digital black 1tb western digital black 1tb western digital green 2tb Corsair Hydro H100i v2 
OSMonitorMonitorKeyboard
Windows 10 - 2016 LTSB 24" ASUS PA246Q 24" dell ultrasharp U2412M filco majestouch 2 
PowerCaseMouse
850W EVGA G3 HAF-X logitech g600 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming