Liberty BASIC Community Forum
« Search Results »

Welcome Guest. Please Login or Register.
Jul 2nd, 2015, 11:31am


Rules|Home|Help|Search|Recent Posts|Notification

--Liberty BASIC Resources--
Yahoo Code Repository (source must be included)
Liberty BASIC Community WikiSpace
Liberty Labs
Bay Six Software Forum
Liberty BASIC Home Page

Official Liberty BASIC Support
Liberty BASIC Programmer's Encyclopedia
Liberty BASIC 5 Handbook
Liberty BASIC on Rosetta Code

Search Results

Total results: 10


 1   Announcements, Software and Websites / In the Spotlight - July, 2015  on: Today at 05:47am
Started by Alyce Watson | Post by Alyce Watson
Liberty BASIC is enjoyed by people all over the world. Have you noticed the link to the visitor globe widget at the top of the main forum page? It gives both real time and cumulative statistics in a number of different formats. I like the 3D globe best. Where does your country rank in number of visits? wink

Revolver Maps

If you are intrigued by the idea of the Arduino Board for hardware interfacing, you'll definitely want to see Rod's new project. Rod says,
Quote:
I am starting a project and I hope those folks interested enough will join in. Meet Libbruino, Libby is her nickname.

Meet Libby

New forum member, Michael Gallup is hard at work on a project to convert images to code. Have a look!
BMPtoCode Utility
Michael has a forum created to support the project here:
Art made with code


 
  Reply Quote Notify of replies

 2   Open Source Projects / Re: [RC] Left factorials  on: Today at 05:34am
Started by tsh73 | Post by tsh73
Just want to say.
We got really lazy with fast computers and things like long integer support.
Last number printed - length of !10000 - actually involved computing 35656-digit number.

But last part of the task
Quote:
Display the length (in decimal digits) of the left factorials for:
1,000, 2,000 through 10,000 (inclusive), by thousands.

could be done faster and without long integers.

Her's how.
We asked for a length of a number.
Length of a number N could be calculated as
int(log10(N))+1
(and log10 could be calculated as log(N)/log(10))
Now, our number is actually sum of factorials of numbers <N, N above 1000
So. last (bigger) things in that sum differs in 1000's.
That means that number of digits is defined with that last item, that is, (N-1)!.
Now, main feature of LOG() function is that
LOG(a*b)=LOG(a)+LOG(b)
So we can calculate LOG((N-1)!) in pretty small numbers.

Here we are,
Code:
for i = 1000 to 10000 step 1000
    print i, lenFact(i-1)
next

function lenFact(n)
    logFact=0
    for i = 1 to n
        logFact=logFact+log(i)
    next
    lenFact = int(logFact/log(10))+1
end function
 

with same result.
Code:
1000          2565
2000          5733
3000          9128
4000          12670
5000          16322
6000          20062
7000          23875
8000          27749
9000          31678
10000         35656
 

 
  Reply Quote Notify of replies

 3   Announcements, Software and Websites / Re: Free arduino contest  on: Yesterday at 8:56pm
Started by mmiscool | Post by michael gallup
My Arduino kit is on its way and my other computer is fixed.
It is top priority for me now.. I plan to make a company that does custom heavy duty controls.

 
  Reply Quote Notify of replies

 4   Announcements, Software and Websites / Re: Free arduino contest  on: Yesterday at 8:10pm
Started by mmiscool | Post by mmiscool
I still have not heard from kokenge .

Please pm me your shipping address.
 
  Reply Quote Notify of replies

 5   Liberty BASIC Code / Re: My first attempt at Making a LB DLL  on: Yesterday at 6:32pm
Started by michael gallup | Post by michael gallup
Pelles C is perfect.. Thanks Dan.. I was offered a job to set up an arduino sensor for a gas pump to shut down the pump when it reaches the paid for amount. It would save the fuel station about $30000 minus my wages.

They had a thief take a lot more fuel than they paid for. They have a manual switch for the pumps so it could be controlled by the computer.

So I need to get the Arduino stuff figured out and using Liberty basic would be awesome for controlling it on the main computer and the C would be good for controlling the wireless sensor.
Its too bad I am just starting with this. He was willing to pay me full time to develop it and I don't know how yet.
This could be my ticket out of the oilfield.

 
  Reply Quote Notify of replies

 6   General Board / Re: Two Computers  on: Yesterday at 10:30am
Started by milfredo | Post by milfredo
Thanks Rod. I was thinking about that as a solution too. Was hoping 5 would be available soon and I'd just pay for that one as I'm disabled and money can be a bit tight.

Thanks again,
Milfredo smiley
 
  Reply Quote Notify of replies

 7   General Board / In the Spotlight - July, 2015  on: Yesterday at 08:16am
Started by Alyce Watson | Post by Alyce Watson
Liberty BASIC is enjoyed by people all over the world. Have you noticed the link to the visitor globe widget at the top of the main forum page? It gives both real time and cumulative statistics in a number of different formats. I like the 3D globe best. Where does your country rank in number of visits? wink

Revolver Maps

If you are intrigued by the idea of the Arduino Board for hardware interfacing, you'll definitely want to see Rod's new project. Rod says,
Quote:
I am starting a project and I hope those folks interested enough will join in. Meet Libbruino, Libby is her nickname.

Meet Libby

New forum member, Michael Gallup is hard at work on a project to convert images to code. Have a look!
BMPtoCode Utility
Michael has a forum created to support the project here:
Art made with code


 
  Reply Quote Notify of replies

 8   Liberty BASIC Code / Re: The RAM drive (400 times faster) I WIN?  on: Yesterday at 04:36am
Started by michael gallup | Post by Rod
Not really, the point you miss is that Liberty needs near 3Mb of support .dlls to run. Any C compiler will just create a compact .dll or exe that will use Windows native kernel and need no other .dlls to run.

Also everything runs in ram these days, even disc access is spooled to ram, you are not really writing to the disc directly. I have 6Gb of ram on the machine I am using right now and it all runs at the same speed, fast.
 
  Reply Quote Notify of replies

 9   General Board / Re: Two Computers  on: Yesterday at 04:30am
Started by milfredo | Post by Rod
The Freeform bug has been discussed before.

http://libertybasic.conforums.com/index.cgi?board=lb4alphatest&action=display&num=1388900674&start=


If you email Carl with your original purchase details so that he may trace that purchase he may reissue the registration code.

When I lost the code and needed to move machine I simply repurchased since it is a relatively modest cost for the fun.
 
  Reply Quote Notify of replies

 10   Liberty BASIC Code / The RAM drive (400 times faster) I WIN?  on: Jun 30th, 2015, 6:45pm
Started by michael gallup | Post by michael gallup
I was looking for a solution to the Liberty Basic DLL scenario, and I recalled the idea of using a RAM drive.
With a RAM drive the transfer rates would essentially be eliminated, because RAM is FAST. (over 400 times faster)
So, maybe we don't need C++ for DLL creation and my method CAN work efficiently if the programs are saved in the RAM drive..
I never give up on finding a solution..
Does this mean I win?
 
  Reply Quote Notify of replies


Rules|Home|Help|Search|Recent Posts|Notification



Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls