Post Reply 
Sharp PC-G850VS
04-11-2022, 08:32 PM
Post: #161
RE: Sharp PC-G850VS
I just found this thread and what a joy it’s been to read through. I just dusted off my G850V in order to explore it’s C. Like others on this thread I’m impressed, it’s a much more capable machine than the Casio VX-4. And quite fast as well.

The only thing I miss in C as a random number call, but I’ll try the one posted on this thread.

The other thing I can’t get working is the “void angle(void)” call. It just says Syntax Error. Does anyone know how to put a C program in to Radians when it runs?
Find all posts by this user
Quote this message in a reply
04-12-2022, 02:07 AM
Post: #162
RE: Sharp PC-G850VS
(04-11-2022 08:32 PM)OS1 Wrote:  The other thing I can’t get working is the “void angle(void)” call. It just says Syntax Error. Does anyone know how to put a C program in to Radians when it runs?

The syntax is:
void angle (unsigned n);

Sets the mode for the trigonometric functions:
n = 0 : DEG
n = 1 : RAD
n = 2 : GRAD

- Rob

"I count on old friends" -- HP 71B,Prime|Ti VOY200,Nspire CXII CAS|Casio fx-CG50...|Sharp PC-G850,E500,2500,1500,14xx,13xx,12xx...
Visit this user's website Find all posts by this user
Quote this message in a reply
04-12-2022, 07:34 PM
Post: #163
RE: Sharp PC-G850VS
(04-12-2022 02:07 AM)robve Wrote:  
(04-11-2022 08:32 PM)OS1 Wrote:  The other thing I can’t get working is the “void angle(void)” call. It just says Syntax Error. Does anyone know how to put a C program in to Radians when it runs?

The syntax is:
void angle (unsigned n);

Sets the mode for the trigonometric functions:
n = 0 : DEG
n = 1 : RAD
n = 2 : GRAD

- Rob

Thank you. One oddity, this seems to need to be the first instruction in the program. If you add it have way through the Rad appears in the display but the program ploughs on in degrees! Not a big deal, just an observation.
Find all posts by this user
Quote this message in a reply
04-12-2022, 08:09 PM
Post: #164
RE: Sharp PC-G850VS
(04-12-2022 07:34 PM)OS1 Wrote:  One oddity, this seems to need to be the first instruction in the program. If you add it have way through the Rad appears in the display but the program ploughs on in degrees! Not a big deal, just an observation.

Strange. That doesn't appear to happen on my G850VS:
10 int main() {
20   printf("Test\n");
30   angle(1);
40   printf("%.10g\n",sin(.1));
50   angle(0);
60   printf("%.10g\n",sin(.1));
70   angle(2);
80   printf("%.10g\n",sin(.1));
90 }


Test
0.09983341665
0.001745328366
0.001570795681

Perhaps a firmware bug in the G850V?

- Rob

"I count on old friends" -- HP 71B,Prime|Ti VOY200,Nspire CXII CAS|Casio fx-CG50...|Sharp PC-G850,E500,2500,1500,14xx,13xx,12xx...
Visit this user's website Find all posts by this user
Quote this message in a reply
04-14-2022, 04:47 AM
Post: #165
RE: Sharp PC-G850VS
(04-12-2022 08:09 PM)robve Wrote:  
(04-12-2022 07:34 PM)OS1 Wrote:  One oddity, this seems to need to be the first instruction in the program. If you add it have way through the Rad appears in the display but the program ploughs on in degrees! Not a big deal, just an observation.

Strange. That doesn't appear to happen on my G850VS:

Perhaps a firmware bug in the G850V?

- Rob

The VS has EEPROM rather than the ROM of the straight V version. Casio undoubtedly made some fixes before shipping the newer VS.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
04-14-2022, 12:36 PM
Post: #166
RE: Sharp PC-G850VS
(04-14-2022 04:47 AM)toml_12953 Wrote:  The VS has EEPROM rather than the ROM of the straight V version. Casio undoubtedly made some fixes before shipping the newer VS.

Casio?? lol Smile

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
04-14-2022, 05:57 PM
Post: #167
RE: Sharp PC-G850VS
(04-14-2022 12:36 PM)rprosperi Wrote:  
(04-14-2022 04:47 AM)toml_12953 Wrote:  The VS has EEPROM rather than the ROM of the straight V version. Casio undoubtedly made some fixes before shipping the newer VS.

Casio?? lol Smile

Sure! Casio snuck in (to my thoughts, if not the Sharp factory) and made the change. Big Grin

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)