general-purpose programs

View previous topic View next topic Go down

general-purpose programs

Post  Jacobite on Sat Feb 25, 2012 9:44 am

Hi John,

Statistics101 is a specialised statistical programming language, but just wondering whether it's possible to write other kinds of programs? Specifically, what I have in mind is to write simulations of various systems for sports betting (using imported data). The appeal of statistics101 is that it will be very easy to get statistics relating to the systems, but the actual systems can involve many variables and/or complex logic. I can't see that there are any particular limitations in the language which will prevent me from doing this, but I'd welcome your input. Smile

Jacobite

Posts : 5
Join date : 2012-02-25

View user profile

Back to top Go down

Re: general-purpose programs

Post  John on Sat Feb 25, 2012 4:20 pm

The language is general enough to use for non-statistical applications. One thing that isn't supported is recursion in subroutines. Another thing is that there are no arrays of variables. (The variables themselves are arrays, or lists, of numbers. But you can't create a variable that is an array of variables.) Some things you might want to do may be more (or less) awkward when written in Statistics101 than in another language, but every language has its pros and cons. Once, just for an experiment, I wrote an FFT (Fast Fourier Transform) subroutine using Statistics101. It ran slowly, but it worked. In fact, that's the reason I wrote all the complex number subroutines that are in the lib folder--to support the FFT algorithm. So, give it a try.

John

Update: The NEWARRAY command, allowing arrays of Vector variables, was added in Statistics101 version 2.5 on 6/12/2012.


Last edited by John on Wed Apr 10, 2013 9:19 am; edited 1 time in total (Reason for editing : New information)

John

Posts : 11
Join date : 2011-09-06

View user profile

Back to top Go down

Re: general-purpose programs

Post  Jacobite on Sun Feb 26, 2012 4:39 am

Thanks for the feedback, that's good to know.

Jacobite

Posts : 5
Join date : 2012-02-25

View user profile

Back to top Go down

Re: general-purpose programs

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum