Squares

General FreeBASIC programming questions.
albert
Posts: 5889
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Squares

Postby albert » Jul 28, 2020 1:16

I came up with a new idea for the bicycle.. I posted about earlier...

Out front , you have two spring loaded ratchet pedals.. instead of sliders or rollers...
Then you have cables attached to the tops of the ratchet going under the seat to the front gear...

As you push a pedal , the cable pulls the front drive gear around..

Then you can still pedal with both feet at the same time , or alternately like normal , which ever you choose .. increasing the total torque...

Most pro-cyclists can leg press 800 to 1,200 pounds..
With a regular bicycle you can only press down with your own weight..
Unless to stand up and pull up on the handle bars..
( i had a 21 speed bike and bent the handle bars and pedals , powering up a hill.. )

A recumbent bike , like above , you can bench press 1,000's of pounds of torque to the rear wheel..
You can pedal both pedals at the same time for more power going up hills..

So , instead of pushing down one pedal with you weight , ( 150lbs ) , you can power pedal 1,200 pounds..

The bike might reach 100 MPH

I sent the felt cycle company an email of the above ,, https://feltbicycles.com/
Richard
Posts: 3029
Joined: Jan 15, 2007 20:44
Location: Australia

Re: Squares

Postby Richard » Jul 28, 2020 1:47

albert wrote:Most pro-cyclists can leg press 800 to 1,200 pounds..
With a regular bicycle you can only press down with your own weight..
Unless to stand up and pull up on the handle bars..
( i had a 21 speed bike and bent the handle bars and pedals , powering up a hill.. )

A recumbent bike , like above , you can bench press 1,000's of pounds of torque to the rear wheel..
You can pedal both pedals at the same time for more power going up hills..

So , instead of pushing down one pedal with you weight , ( 150lbs ) , you can power pedal 1,200 pounds..

You must have been jumping on the pedals; or did you have toe straps?

Real cyclists wear cleats on their shoes so they can pull up with one leg as they push down with the other. They hold the handle bars and twist the frame of the bicycle as they develop higher power with their legs. Higher power is gained by increasing cadence, not by increasing leg force at low RPM that will lead to injury.
albert
Posts: 5889
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Squares

Postby albert » Jul 28, 2020 17:09

@Dodicat

Working on the decompression.. There's duplicates in the output...

But its getting most values right....Ill keep playing with it...

Code: Select all


screen 19

dim as string n1 , n2 , n3 , n4
dim as longint v1 , v2 , v3 , v4 , v5 , v6
dim as longint answer
dim as string map1 = ""
dim as string map2 = ""
dim as string map3 = ""
dim as string map4 = ""

dim as string chk1 , chk2

for a as longint = 0 to 255 step 1

        n1 = "000" + oct( a )
        n1 = right( n1 , 3 )
       
        v1 = n1[ 0 ] - 48
        v2 = n1[ 1 ] - 48
        v3 = n1[ 2 ] - 48
       
        if v2 > 3 then v2-= 4 : map1 = "1" else map1 = "0"
        if v3 > 3 then v3-= 4 : map1+= "1" else map1+= "0"
       
        n2 = ""
        n2+= bin( v1 + 2 )
        n2+= "1" + bin( v2 + 1 )
        n2+= right( "00" + bin( v3 ) , 2 )
       
        chk1 = chr( val( "&B" + n2 ) )
 
    for b as longint = 0 to 255 step 1
   
            n3 = "000" + oct( b )
            n3 = right( n3 , 3 )
           
            v4 = n3[ 0 ] - 48
            v5 = n3[ 1 ] - 48
            v6 = n3[ 2 ] - 48
           
        if v5 > 3 then v5-= 4 : map2 = "1" else map2 = "0"
        if v6 > 3 then v6-= 4 : map2+= "1" else map2+= "0"
       
        n4 = ""
        n4+= bin( v4 + 2 )
        n4+= "1" + bin( v5 + 1 )
        n4+= right( "00" + bin( v6 ) , 2 )
       
        chk2 = chr( val( "&B" + n4 ) )
           
        if chk2 = chk1 and ( map2 = map1 ) then answer = b : exit for
       
    next
   
    if a = answer then print n2 , n4 , a , answer
    if a <> answer then print n2 , n4 , a , answer ; "  ERROR"
   
    sleep
    if inkey = chr( 27 ) then end
   
next

sleep
end



!!~~EDITED~~!!
albert
Posts: 5889
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Squares

Postby albert » Jul 28, 2020 23:09

@Dodicat

You have to output the same number of bits you input...
If you short 1 bit on one number , it creates like 16 duplicates....
coderJeff
Site Admin
Posts: 3282
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Squares

Postby coderJeff » Aug 01, 2020 19:06

Hi albert. You should expect by now that my response to your 'compression / unable to decompress' code posts will be predictably consistent. Your suspension of forum access is a direct result of posting a problem that has already been answered many times. I am genuinely concerned for your health. Try a different line of questioning or focus on a different part of the problem.
albert
Posts: 5889
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Squares

Postby albert » Aug 06, 2020 1:09

@Richard

I think i invented "Nuclear Batteries"...

If you take two di-similar metal wires ( nickle / copper) and twist them up , and then apply heat , it produces a small amount of electricity..
If you make the wire twists out of radioactive elements , it would be self-heating and produce electricity without applying heat..

You could etch the radioactive wire twists , onto a silicone circuit chip , in a grid pattern ( like a solar array ) , to provide endless power , to cell-phones and laptops..
Maybe , even desktop computers??

Maybe , with enough chips , you could power a house??
bfuller
Posts: 338
Joined: Jun 02, 2007 12:35
Location: Sydney, Australia

Re: Squares

Postby bfuller » Aug 06, 2020 2:43

Richard
Posts: 3029
Joined: Jan 15, 2007 20:44
Location: Australia

Re: Squares

Postby Richard » Aug 06, 2020 2:49

@albert.
Do you really want to cause cancer in the users?
Radiation makes electronics unreliable and kills semiconductor chips.

You have not “invented it”, you have just realised that it could be done.
You are so far behind you think you are first. You are 65 years too late.

https://en.wikipedia.org/wiki/Radioisot ... _generator
albert
Posts: 5889
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Squares

Postby albert » Aug 06, 2020 3:12

@Richard

I learned about it in High School science class...

You twist nickle and copper wires together , and apply a heat source , and it creates and electric flow in the wires..

I tried searching Wikipedia and could not find any info on it...

But if you make the wires out of di-similar radioactive metals ( neptunium / plutonium ) , it should be self powering , without needing a heat source..

They've had nuclear batteries since 1913 , according to Wikipedia ( bfuller's post above ) .. But none of them are the twisted di-similar metal type..
Richard
Posts: 3029
Joined: Jan 15, 2007 20:44
Location: Australia

Re: Squares

Postby Richard » Aug 06, 2020 5:19

albert wrote:@Richard
But if you make the wires out of di-similar radioactive metals ( neptunium / plutonium ) , it should be self powering , without needing a heat source..
The temperature of one end of the wire must be different to the other. That will not happen if the wire material provides the heat. You are forgetting the incredible toxicity of plutonium, and the risk of cancer.

Now you need to get back to writing FB or studying algebra.
albert
Posts: 5889
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Squares

Postby albert » Aug 06, 2020 22:53

@Richard

If the dissimilar wires are micro-etched onto a circuit chip..The radiation would be close to nill...

They use nuclear batteries in pacemakers for the heart..
Richard
Posts: 3029
Joined: Jan 15, 2007 20:44
Location: Australia

Re: Squares

Postby Richard » Aug 07, 2020 2:13

@Albert.
Nuclear batteries are uneconomic and dangerous.
No matter what I write, you will insist it can be done, even though it is no longer done.

Rupert Sheldrake invented the terms “Morphic Resonance” and “Morphic Fields” to explain why it is so easy to reinvent something.
https://en.wikipedia.org/wiki/Rupert_Sh ... _resonance

You should work on the assumption that everything you discover or think of, has been invented earlier by someone else. You need to invest more time googling and reading about your ideas before you post them as novel inventions.

Post physics ideas on a Physics Forum, not on a programming language forum where they are off topic.
Stonemonkey
Posts: 646
Joined: Jun 09, 2005 0:08

Re: Squares

Postby Stonemonkey » Aug 08, 2020 15:08

You should work on the assumption that everything you discover or think of, has been invented earlier by someone else.


I invented a rendering method some time ago (at least in all my time obsessed with software rendering I've never encountered it), the results are similar to early Doom type games so it is pretty much worthless. I am currently trying to write it in 6502 to see if I can get it working in some way on an acorn electron (emulator) which was my first computer, I always wanted to write some sort of 3Dish roaming program on it as a kid but never managed, now I think it might just be possible, I dont plan on textures but depending how it goes I might even give that a go, (32k total RAM that includes screen memory and parts of OS, and a 1-2 MHz 8 bit cpu are a bit limiting though)
albert
Posts: 5889
Joined: Sep 28, 2006 2:41
Location: California, USA

Re: Squares

Postby albert » Aug 08, 2020 20:54

@Dodicat

Still working on compression, I'm up to like formula 10,000.... and nothing good yet...
angros47
Posts: 1671
Joined: Jun 21, 2005 19:04

Re: Squares

Postby angros47 » Aug 08, 2020 21:23

albert wrote:@Dodicat

Still working on compression, I'm up to like formula 10,000.... and nothing good yet...


And don't you think, with that, that persevering into that would just be pure insanity?

What else do you need to persuade you that you cannot do that?

Also, to Richard and dodicat: perhaps you should stop giving him any explanation, you are just feeding his illusions

Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests