## Pentacles

General FreeBASIC programming questions.
angros47
Posts: 1785
Joined: Jun 21, 2005 19:04

### Re: Pentacles

In math, multiplication can use the "x" operator, or the "·" operator, that is called interpunct
https://en.wikipedia.org/wiki/Interpunct

Since it's already very small, it can be omitted when writing a multiplication: so

a=b·c

can become

a=bc

In programming, of course, you can't use "x" to multiply, because x can be also a variable, so you use the interpunct. But since in origin many computer didn't have that symbol on the keyboard, developers used the asterisk * as replacement. You cannot use a normal point, because it is already used as flotation point (3.5 does not mean 3*5). And you cannot omit it, since "bc" could be a different variable.
Posts: 2175
Joined: May 24, 2007 22:10
Location: The Netherlands

### Re: Pentacles

Actually it is × not x (according to https://en.wikipedia.org/wiki/Multiplication_sign).
I guess mathematicians are lazy and a × b became a ⋅ b and then a b
Richard
Posts: 3047
Joined: Jan 15, 2007 20:44
Location: Australia

### Re: Pentacles

When Albert writes and runs a line of code, he is arithmetically manipulating the numbers in the named containers.
But a mathematician would process the symbolic algebraic equation, and immediately see the result.
That explains the riddle of; A = B * A / B.
To Albert that is a statement of simple arithmetic, best done with a computer.
To me it is trivial algebra, in need of rationalisation.
If you go back through Albert's posts in the Circles and the Squares threads, you will see many other examples.
albert
Posts: 5927
Joined: Sep 28, 2006 2:41
Location: California, USA

### Re: Pentacles

@Richard

A = B x A / B

B x A = ? and \ B cancels the mul out , so it's A = A

Same as A = B + A - B = ( A = A )

I'm not entirely stupid...

I'm just schooled in math formulas... I don't understand the complex formulas..

But all of math is simple , add , sub , mul , div , sqr , cuberoot .. and then the trig functions...
dodicat
Posts: 6754
Joined: Jan 10, 2006 20:30
Location: Scotland

### Re: Pentacles

What is the definition of a "mathematician" anyway?
Albert, you will have to go back thru circles and squares and rationalize your denominators tout suite.
albert
Posts: 5927
Joined: Sep 28, 2006 2:41
Location: California, USA

### Re: Pentacles

@Dodicat

I've been playing around with the idea of robotics...

I figure that the robots brain could be external and accessed through a radio ( RC ) or a cellphone..

Then you could hook the robot up to a super computer with AI like IBM's Watson computer...
Then Watson could control the robot through a cell phone hook up..

With Watson:

The robot could do just about anything...

Fetch you a beer out of the fridge , turn the lights on and off.
Build you a fire , in the fire place..
Paint the house..Wash the dishes..
Help the kids with their homework... etc... Act as soldiers on a battlefield...
Walk the dog..etc...

The idea just came to me today.... I think it would work!!!

Once the robot learns the layout of the house and where all the tools and gadgets are located.. it could do anything to keep and maintain a home..
Sweep and mop the floors.. fix the car etc....

Perform opera and ballets for the family etc...
dodicat
Posts: 6754
Joined: Jan 10, 2006 20:30
Location: Scotland

### Re: Pentacles

I believe basiccoder2 was interested in this.
He has some sort of device in his shed.
https://www.freebasic.net/forum/viewtopic.php?f=8&t=22859&p=201275&hilit=%2Ahoover%2A#p201275
angros47
Posts: 1785
Joined: Jun 21, 2005 19:04

### Re: Pentacles

albert wrote:I figure that the robots brain could be external and accessed through a radio ( RC ) or a cellphone..
.....

The idea just came to me today.... I think it would work!!!

You are 77 years late. Isaac Asimov had the same idea in 1944:
https://en.wikipedia.org/wiki/Catch_That_Rabbit
robert
Posts: 127
Joined: Aug 06, 2019 18:45

### Re: Pentacles

albert wrote:@Dodicat

Paint the house..Wash the dishes..

Samsung must have read Albert's post.

https://www.cnet.com/news/samsung-ces-2021-robots-will-clean-your-house-and-pour-you-a-glass-of-wine/
albert
Posts: 5927
Joined: Sep 28, 2006 2:41
Location: California, USA

### Re: Pentacles

@Dodicat

This formula compresses 5% on loop one...
=================================
n1 = mid( bits , a , 8 )

v1 = val( "&B" + mid( n1 , 1 , 4 ) )
v2 = val( "&B" + mid( n1 , 5 , 4 ) )

if v2 <= 9 then
outs+= chr( ( v1 * 10 ) + v2 )
else
outs+= chr( ( v1 * 16 ) + v2 )
end if
=================================

If i put in a map , it expands like 10% on loop one...

Is there a way to figure the 2 separate cases? , without a map?

in the first case v2 <= 9
In the second case v2 >= 10

I'm getting confused by it....
How would you mod or divide , to get v2? To see if its < 10 or greater than > 9
Is there a way?? Or am i just going in circles??
coderJeff
Posts: 3388
Joined: Nov 04, 2005 14:23
Contact:

### Re: Pentacles

Not having this ... again.
Richard
Posts: 3047
Joined: Jan 15, 2007 20:44
Location: Australia

### Re: Pentacles

Albert wrote:Or am i just going in circles??
It is clear that you were still going around in the same old circles you always do.
And it seems this time you only received a 1 month ban.

If you are wise you will find a school math text book and take a month to study an introduction to algebra. Then you could recognise and avoid those circular whirlpools that trap you, so you don't get banned again.
srvaldez
Posts: 2574
Joined: Sep 25, 2005 21:54

### Re: Pentacles

@albert
please check out this learning site https://brilliant.org/