Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 832 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Pretty Good Calculator [Re: mk_1] #370898
05/16/11 16:49
05/16/11 16:49
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
do you use your own number class then? will you add control structures to the calculator?

Re: Pretty Good Calculator [Re: Joey] #370975
05/16/11 22:09
05/16/11 22:09
Joined: Dec 2000
Posts: 4,608
mk_1 Offline OP

Expert
mk_1  Offline OP

Expert

Joined: Dec 2000
Posts: 4,608
I'm using mapm for the numbers and my own structure for complex numbers and matrices. I'm not sure about control structures. In the end this calculator shall be a simple tool. I'll add functions which are just several actions executed but that's it, no conditions, no loops. Conditions can be accomplished by some functions I'll add (see matlab's "any") and comparators which are still to be implemented. Loops can almost always be done with a range vector.


Follow me on twitter
Re: Pretty Good Calculator [Re: mk_1] #371451
05/21/11 12:36
05/21/11 12:36
Joined: Dec 2000
Posts: 4,608
mk_1 Offline OP

Expert
mk_1  Offline OP

Expert

Joined: Dec 2000
Posts: 4,608
There's a new version: Download

Changes:

  • fixed cpu processing time
  • fixed popup of autocomplete window
  • added modulo "%"
  • added comparators (same as in C)
  • added "any" function


Please report any unusual behaviour. I'm not sure if my parser is working correctly so try some terms that don't make sense (like several "+" in a row)


Follow me on twitter
Re: Pretty Good Calculator [Re: mk_1] #371453
05/21/11 13:33
05/21/11 13:33
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
okay, I made it crash

5+5:20

EDIT: I can't reproduce it..

Last edited by Inestical; 05/21/11 13:35.

"Yesterday was once today's tomorrow."
Re: Pretty Good Calculator [Re: Inestical] #371461
05/21/11 14:42
05/21/11 14:42
Joined: Dec 2000
Posts: 4,608
mk_1 Offline OP

Expert
mk_1  Offline OP

Expert

Joined: Dec 2000
Posts: 4,608
Negative ranges crash it (like 5:2 where it should be 5:-1:2), thx


Follow me on twitter
Re: Pretty Good Calculator [Re: mk_1] #371477
05/21/11 16:31
05/21/11 16:31
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
.2 isn't recognized. also, you can do weird stuff like (2:4)+(3:5)*2/(2.4:2.58). crashes when doing something like 1:(2^20) and then quitting the program.

Last edited by Joey; 05/21/11 16:33.
Re: Pretty Good Calculator [Re: Joey] #371479
05/21/11 16:54
05/21/11 16:54
Joined: Dec 2000
Posts: 4,608
mk_1 Offline OP

Expert
mk_1  Offline OP

Expert

Joined: Dec 2000
Posts: 4,608
.2 yes, something I should add
the weird stuff is correct. It's two 2-component vectors added and one of them is multiplied by a scalar.

1:(2^20) doesn't crash. it only takes time. I'm going to move the calculation to another thread for the next update.


Follow me on twitter
Re: Pretty Good Calculator [Re: mk_1] #371483
05/21/11 17:16
05/21/11 17:16
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
no, it doesn't crash immediately but when i quit the program afterwards.

edit: just noticed that it always crashes on exit.

Last edited by Joey; 05/21/11 18:05.
Page 2 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1