Welcome Guest.   Make a donation to an author on the site July 22, 2014, 06:54:50 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: programming language for math  (Read 1978 times)
kalos
Member
**
Posts: 995

View Profile Give some DonationCredits to this forum member
« on: August 11, 2012, 04:28:47 PM »

hello!

which programming language is more fast at calculating math?

maybe machine language?

thanks!
Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: August 11, 2012, 04:44:55 PM »

Define "fast".
Define "math".

Nothing beats assembly code hand-tuned for a specific CPU... but that might take prohibitively much longer time to write than some higher-level language, and sometimes for marginal gains. You're best off using some language that's math-friendly and has optimized standard (math) libraries, then perhaps hand-tuning your code once you've got your algorithms working correctly.

But all the above is hand-waving as long as your question is so general :-)
Logged

- carpe noctem
Shades
Member
**
Posts: 1,606


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #2 on: August 11, 2012, 04:50:02 PM »

'R' is a (and for some, THE) programming language for math. Maybe that could be the answer to the question.
Logged
Renegade
Charter Member
***
Posts: 10,823



Tell me something you don't know...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: August 11, 2012, 05:10:18 PM »

I suppose some options are:

R (mostly for stats from what I've heard people talk about - not sure about performance)
C
Fortran (this is a Ferrari for performance)
Matlab (think of this as for prototyping)

The entire class of functional languages are well suited to math:

F#
Erlang
etc. etc.

Lisp is highly performant, and a darling in academia. Might be worth looking at.

But as f0dder said, the lowest level languages are going to take forever to program in. ASM (etc.) probably isn't worth even looking at. You can just buy more computing power, and it will likely be cheaper than your development time.
Logged

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: August 11, 2012, 05:18:25 PM »

I've read very good things about python with numpy. In particular, I found this article interesting: 10 Reasons Python Rocks for Research (And a Few Reasons it Doesn’t). I've never used it with that intent, though. And I agree with f0dder: you need to clarify a bit better your question smiley
Logged

mahesh2k
Supporting Member
**
Posts: 1,406



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: August 11, 2012, 08:14:49 PM »

Julia

Check the performance.

http://julialang.org/
Logged
superboyac
Charter Member
***
Posts: 5,606


Is your software in my list?

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: August 12, 2012, 02:50:14 AM »

I suppose some options are:

R (mostly for stats from what I've heard people talk about - not sure about performance)
C
Fortran (this is a Ferrari for performance)
Matlab (think of this as for prototyping)

The entire class of functional languages are well suited to math:

F#
Erlang
etc. etc.

Lisp is highly performant, and a darling in academia. Might be worth looking at.

But as f0dder said, the lowest level languages are going to take forever to program in. ASM (etc.) probably isn't worth even looking at. You can just buy more computing power, and it will likely be cheaper than your development time.

juicy post!  good stuff.
Logged

xtabber
Supporting Member
**
Posts: 374


View Profile Give some DonationCredits to this forum member
« Reply #7 on: August 14, 2012, 08:57:24 AM »

That depends on what you mean by "calculating math."

If you are talking about writing high-performance software, most high speed math libraries are written in C, and most C compilers provide optimization choices to help speed up math routines. Depending on whether or not you will be working in floating point also makes a difference -- there are libraries optimized for math co-processors and parallel processing, and for nearly any math functions you might desire.  Fortran is still widely used because it is easier to program (for mathematicians) but not as efficient or flexible as C/C++.

If you are talking about the need to quickly implement a variety of math calculations, processing speed is not as important a factor as the ability to use existing routines that are known to do the job properly. There are many specialized math programming systems, most of them pricey, favored by different folks in different fields: Mathematica, Matlab, Gauss, etc..  R is a good choice for statistics, but is inefficient on large data sets.
Logged
Curt
Supporting Member
**
Posts: 6,306

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: August 21, 2012, 07:39:49 AM »

http://www.giveawayofthed...com/doronix-math-toolbox/
Logged
Shades
Member
**
Posts: 1,606


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #9 on: August 21, 2012, 12:47:39 PM »

@Curt:
I am interested in this piece of software, but...

[Off-topic]
Does anyone else experience trouble accessing the giveawayoftheday website? It is now already about a month I cannot access any content from anywhere in Paraguay, I just get blank pages.
[/Off-topic]
Logged
kalos
Member
**
Posts: 995

View Profile Give some DonationCredits to this forum member
« Reply #10 on: August 21, 2012, 04:41:35 PM »


this is great, thanks!
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.036s | Server load: 0.08 ]