Jump to content



Photo
* * * * * 4 votes

C.Basic - International Release

Casio Basic C.Basic

  • Please log in to reply
702 replies to this topic

#481 acapde

acapde

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 23 November 2019 - 08:20 PM

Hi, maybe someone can help me with these:

 

1) If I need to round off a small number to a certain decimal place I can use RndFix and that seems to work fine. However, if I have larger numbers (i.e. 3.5675887e15) and I want to round off to a specific number of digits I can't find an equivalent (RndSci?), Am I missing something? In the case of HP calculators, the round function is tied to the display setting, so if the calculator is in SCI 4 mode, the rounding will always happen at the 4th digit to the right of the DP. However this doesn't seem to work the same with FX-9860GII.

 

2) Prog argument.

This runs well:

......... Prog "FX".........     The program execution jumps to the program FX and, when it's done, execution returns to the instruction after Prog "FX" 

 

However, if I do this:

......... "FX" -> Str 1...... Prog Str 1......... I get "Can't find file" error. Is there any way to execute a program indirectly (based on the program name stored somewhere)?

 

Thank you very much.

 

   

 

 

 

 

 

 

 



#482 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 24 November 2019 - 02:08 AM

@CalcLoverHK
[,height] option specifies the height of the font to draw similar to the Text command. :)
Locate 1,1,"ABCDEF",,,18
Draw the upper 16 dots.
However, there seems to be a bug in the current C.Basic. :P
 
“Withot” is a shortened version of “without” due to character limitations.
It may be inappropriate as a word abbreviation.
Is “wout” better? ^_^
 
 
 
@acapde
1)
Casio's rounding specification is different from HP.
To execute in genuine Casio Basic, display SCI display and FIX display separately. :)
' A <- target value
If A<1e10:Then
Fix 3
Else
Sci 4
IfEnd
A
In C.Basic, you can use the following extended commands. ^_^
Rndfix(A,Sci 4)   ' Round to 4 significant digits
 
2)
It is impossible to execute in genuine Casio Basic.
However, it is possible in C.Basic. ^_^
(Currently, subprograms need to be registered in advance, which will be corrected in a future update.)
 

  • acapde likes this

#483 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 24 November 2019 - 03:18 AM

Hi CalcLoverHK

 

In Manual_EN.txt and ManualCG_EN.txt, Locate command reference says as follows;

 

-------------------------------------------------------------------------------
Locate Shift+VARS(PRGM)-F6-F4(I/O)-F1(Locate)
-------------------------------------------------------------------------------
(Format) Locate [@][!]X,Y,<"string" or expression>,[,N/R]
 [@] The drawing of the command becomes current VRAM.
 [!] Even if the extended font is introduced, drawing in the original font forcibly.
 [.N] Normal
 [.R] Reverse
 
Add [,R] at the end of parameters, the display is reversed.
 (Example) Locate 1,2,"Test",R
  Reversed "Test" is displayed at location (1,2).
 
-With prefix # to expression (parameter) in Locate as well as Sprintf, Text and Disp commands makes evaluation of the expression in real number.
 In "Integer Mode", the expression with prefix # allows displaying string of "real number" which reflects the evaluation in real number. Prefix # helps display in "Integer Mode" to handle "real number" by Locate, Sprintf, Text and Disp commands.
(Example)
 '#CBINT
 10->A
 Locate 1,2,log 123+A
 In Integer Mode, "log 123+A" is rounded to 12, but
(Example)
 '#CBINT
 10->A
  Locate 1,2,#log 123+A
With the prefix #, it is not rounded and display 12.089905111.
An expression after prefix # is handled as real number, but variable (for Example A above) is still used as integer variable, so prefix % should not be added.

 

------------------------------------------------

 

Can you tell us what manual do you want to compile in?

 

 

Chao chao



#484 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 24 November 2019 - 07:50 AM

Hi sentaro21 and Krtyski

@sentaro21:
w/o is better because it is common abbreviation of "without" nowadays.

And so do you mean if [height]=16, the font will occupy a height of 16 dots? (magnify/shrink effect?)

Or how does it work? Like:

 

Original height of 8: (an area of 5*7)

*****
*   *
*   *
*****
*   *
*   *
*****

If [height]=14, which one is correct?

(an area of 10*14, width is twice of the original)

**********
**********
**      **
**      **
**      **
**      **
**********
**********
**      **
**      **
**      **
**      **
**********
**********

(an area of 10*14, width is the same)

**********
*        *
*        *
*        *
*        *
**********
*        *
*        *
*        *
*        *
**********

@Krtyski:

Both FX and CG manuals will be compiled in my project.

To distinguish the different contents, I use the markings (such as FX, CG).

 

Cheers

CalcLoverHK


Edited by CalcLoverHK, 24 November 2019 - 07:53 AM.


#485 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 24 November 2019 - 09:01 AM

Hi sentaro21 and CalcLoverHK

 

I agree with expression "w/o" instead of "without" as well as "w/" for "with".

 

Also using FX and CG for specific commands, parameters, explanation looks good idea to consolidate FX and CG into a single document. Maybe using [ ] ([FX] / [CG]) would be good?


Edited by Krtyski, 24 November 2019 - 11:54 AM.


#486 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 24 November 2019 - 09:31 AM

Hi Krtyski

This one is better because some users may misunderstand [FX] as a button.

Studio-20191124-172931.png

Cheers
CalcLoverHK

Edited by CalcLoverHK, 24 November 2019 - 09:33 AM.


#487 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 24 November 2019 - 11:59 AM

@Krtyski
@CalcLoverHK
Ok!
I will change "w/o" instead of "withot". ^_^
 
 
[.height] option means only the height adjustment of the font drawing.
It is not scaled. :)
 

Original height of 8: (an area of 5*7)

*****
*   *
*   *
*****
*   *
*   *
*****
 
If [height]=5,
*****
*   *
*   *
*****
*   *
Only the upper 5 dots are drawn.
 
 
If [height]=14,
*****
*   *
*   *
*****
*   *
*   *
*****
 
 
 
 
 
 
7-dot space is added below.
 

Edited by sentaro21, 24 November 2019 - 12:01 PM.


#488 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 24 November 2019 - 12:00 PM

Hi CalcLoverHK,

 

Oh, [FX] and [CG] maybe misunderstood as button, I agree with you.

 

The sample page of manual looks lovely!

 

Chao



#489 acapde

acapde

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 25 November 2019 - 04:27 AM

 

 
@acapde
1)
Casio's rounding specification is different from HP.
To execute in genuine Casio Basic, display SCI display and FIX display separately. :)
' A <- target value
If A<1e10:Then
Fix 3
Else
Sci 4
IfEnd
A
In C.Basic, you can use the following extended commands. ^_^
Rndfix(A,Sci 4)   ' Round to 4 significant digits
 
2)
It is impossible to execute in genuine Casio Basic.
However, it is possible in C.Basic. ^_^
(Currently, subprograms need to be registered in advance, which will be corrected in a future update.)

 

 

Super Sentaro21! I'll try this right away. I've been enjoying your work very much, very impressed about how much better this calculator is when using C.Basic.

 

Thank you very much again.

Best regards.



#490 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 25 November 2019 - 12:42 PM

Thanks! :D

Please feel free to get in touch if you have any questions or requests in C.Basic. ^_^



#491 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 28 November 2019 - 06:55 AM

Hi sentaro21

 

Can I put ":" next to "" like ":" as seen in the manual?

 

(Example in manual)

Locate 2,2,"String":

Text 16,1,"TextString":

 

(Interpreted)

Locate 2,2,"String":Text 16,1,"TextString":

 

Is my interpreting correct?

 

Cheers

CalcLoverHK


Edited by CalcLoverHK, 28 November 2019 - 06:57 AM.


#492 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 28 November 2019 - 08:06 AM

Yes, it is correct syntax. ^_^



#493 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 29 November 2019 - 07:45 AM

Here is new updated version that fixes the remaining bugs. ^_^
 
2.39 beta  for for 9860G/GII series/Graph 35+USB/35+EII/75/85/95 (SD)
 
1.39 beta for CG10/20/50/Graph90+E.
        -Fixed the bug that the height specification was invalidated by Locate/LocateYX command.
 
--Same update--
        -Fixed the problem that EXIT does not cancel the debug mode when the Help function is enabled.
        -Fixed a bug when using List as an argument in the DrawGraph command.
        -The error message "Withot" has been changed to "w/o".


#494 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 29 November 2019 - 04:14 PM

Hi sentaro21

 

Gosh... I found a calculator forum which has no C.Basic-related thread at all.

 

https://www.cncalc.org/

cnCalc计算器论坛

 

Since I know the simplified Chinese that the forum uses, shall we take our next step to it?  :D

 

Cheers

CalcLoverHK


Edited by CalcLoverHK, 29 November 2019 - 04:16 PM.


#495 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 30 November 2019 - 01:39 AM

Thanks!
That is a good idea. :D
Cuold you create a Chinese version of the PDF? ^_^


#496 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 30 November 2019 - 01:48 AM

Hi sentaro21

 

Thanks again!

It is planned in my project, but I'm not sure when will it start. It will probably need more time as I need to translate English content to Chinese.

I'm going to edit the post in cnCalc and post a link of it here.

 

Cheers

CalcLoverHK



#497 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 30 November 2019 - 03:39 AM

Ok!

Thanks a lot! :D



#498 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 30 November 2019 - 06:45 AM

Hi CalcLoverHK and sentaro21

https://www.cncalc.org/

cnCalc计算器论坛

 

 

On Chrome 78, the site is blocked because of possible security breach.

 

Be careful!



#499 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 30 November 2019 - 06:57 AM

The following link is correct. ^_^

https://www.cncalc.org/



#500 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 30 November 2019 - 10:17 PM

Hi all C.Basic ethusiasts

 

Thanks to everyone's support, the C.Basic Chinese Help Center are opened up for chatting and updates.  :)

https://www.cncalc.o...24320-1-1.html/

Which means Guide_CN is planned to be included in C.Basic ZIP package.

 

Cheers

CalcLoverHK



#501 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 01 December 2019 - 03:19 AM

Thanks CalcLoverHK :D
I hope the built-in Chinese font is useful in China.
 
 
Here is new fixes & re-updated. ^_^
 
1.39 beta for CG10/20/50/Graph90+E.
        -Fixed the bug that ViewWindow was not initialized at initial startup.


#502 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 01 December 2019 - 08:34 AM

Hi sentaro21

A bunch of questions:
- What is the usage of variable A in Getkey3(128,A)?
- What are the differences between extended ":" and "@"? (I see both are for VRAM-drawing)
- In Text, Are the following combinations of F,M,B,X possible? Or are there more?
F: itself/+{MB/X}
M: itself/+{B}
B: itself
X: itself
- And must the order be F>M>B>X?

And seems the maximum length of error message is 17 symbols. You cannot change "Default wo Switch" to "Default w/o switch", right? Maybe "Def. w/o Switch"? (because I see "Duplicate Def ERR")
Other suggested changes:
"While w/o WEnd" -> "While w/o W.End"
"WEnd w/o While" -> "W.End w/o While"
"Not found Prog" -> "Prog Not Found"
"Undefined Var" -> "Undef. Variable" (?)
"Undefined Func" -> "Undef. Function" (?)
"Already Open ERR" -> "Already Opened"
"Com Not Open ERR" -> "Com Not Opened"
"Type Mismatch ERR" -> "Type Mismatched"
"Out of Domain ERR" -> "Out of Domain"
"Not Support ERR" -> "File Not Support"
"Too many Var ERR" -> "Exceed Var limit"
"Duplicate Def ERR" -> "Repeat Default" (?)

Well, what does "Def" and "Func" mean originally?

Cheers
CalcLoverHK

#503 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 01 December 2019 - 10:03 AM

Dear CalcLoverHK & sentaro21

 

 

Regarding suggestion by CalcLoverHK, I think using "." for abbreviation is good idea.

So keeping consistency of the idea, let me  propose followings;

 

"Not found Prog" -> "No Prog Found"

 

"Undefined Var" -> "Undefined Var."

 

"Undefined Func" -> "Undefined Func."

 

"Not Support ERR" -> "Not Supported File"

 

"Too many Var ERR" -> "Exceed Var. limit"

 

"Duplicate Def ERR" -> "Duplicated Def."

 

 

CalcLoverHK & sentaro21, what do you like?


Edited by Krtyski, 02 December 2019 - 02:20 AM.


#504 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 01 December 2019 - 11:54 AM

@CalcLoverHK

- What is the usage of variable A in Getkey3(128,A)?[quot]

If there is no second argument,
Wait for 128Ticks.
If there is a key input, the key code is returned.
 
If there is a second argument:
Wait from the value of A (below the first argument) to 128Ticks.
 
In both cases, the key code entered last is valid during the wait period.
 

- What are the differences between extended ":" and "@"? (I see both are for VRAM-drawing)

“:” Stops the transfer to the LCD after the command is executed. (Nothing changes on the screen)
 
“@” Draws to the current VRAM regardless of text or graphics VRAM.
as a result,
You can draw on the text screen with graphics commands.
You can also draw text commands on the graphics screen.
 

- In Text, Are the following combinations of F,M,B,X possible? Or are there more?

F: itself/+{MB/X} 
M: itself/+{B}
X: itself[/quot]
There are all Ok.
 

B: itself

This is not possible because no bold mini font.
 
The order of options is
-F
 -FX
 -FM
  -FMB
-M
 -MB
-X
 
 

And seems the maximum length of error message is 17 symbols. You cannot change "Default wo Switch" to "Default w/o switch", right? Maybe "Def. w/o Switch"? (because I see "Duplicate Def ERR")

Switch is shortened to Swtch. :P
 

Well, what does "Def" and "Func" mean originally?

There are reserved for extending function commands. ^_^
 
 
@CalcLoverHK
@Krtyski
Thanks! :D
I would like to refer to the new error notation.
In the future, I would like to switch to Japanese, French, or Chinese error notation. ^_^
 


#505 Hlib2

Hlib2

    Casio Freak

  • Members
  • PipPipPipPip
  • 142 posts
  • Gender:Male
  • Location:Ukraine
  • Interests:industrial electronics,
    graphing calculators

  • Calculators:
    fx-9860GII-2
    graph-100+
    fx-991DE_X
    ti-89_Titanium
    ti-voyage200
    ti-84+SE

Posted 01 December 2019 - 11:55 AM

Please, clarify to me the features of the Beep function. Beep Hz, ms (e.g. Beep 500, 1800) syntax works fine. The Beep List 1, List 2 variant also does not give an error, but works as
Beep List 1[1], List 2[1]
, and no more. Syntax with two lists is similar to the one in Hp-50g, wich can do
{Hz1,Hz2 ... HzN} {ms1,ms2 ... msN} BEEP
. Can this function handle two lists in C.Basic?

#506 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 01 December 2019 - 10:54 PM

Please, clarify to me the features of the Beep function. Beep Hz, ms (e.g. Beep 500, 1800) syntax works fine. The Beep List 1, List 2 variant also does not give an error, but works as

Beep List 1[1], List 2[1]
, and no more. Syntax with two lists is similar to the one in Hp-50g, wich can do
{Hz1,Hz2 ... HzN} {ms1,ms2 ... msN} BEEP
. Can this function handle two lists in C.Basic?

 

Thank you for the new feature proposal! :D
The new features look very good.
It will be implemented in the next update. ^_^


#507 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 03 December 2019 - 10:52 AM

Hi sentaro21

Is the following description true anymore?
 

Please be informed that there is a FA-124 bug. Files may be destroyed when multiple files are copied at once in right pane. Do not copy multiple files at once to right pane from left pane or outside of FA-124. When you get backup files into right pane of FA-124, you should transfer the files back to calculator and check their functionality immediately. If they work, then your backup files have no problem.

 

 

(About the FA-124 bug with improved expression)

Cheers
CalcLoverHK


Edited by CalcLoverHK, 03 December 2019 - 10:54 AM.


#508 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 03 December 2019 - 11:51 AM

Hi sentaro21

Is the following description true anymore?
 

 

(About the FA-124 bug with improved expression)

Cheers
CalcLoverHK

Yes.

We have confirmed the phenomenon of file corruption many times. :)

 

 

I'm sorry. Saving the cursor position in the editor did not work. :bow:

1.39 beta for CG10/20/50/Graph90+E.


#509 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 04 December 2019 - 11:02 AM

Hi sentaro21

Can you put "bmp_sampleCG" and "ML_sampleCG" folder in "CBasic_sample" folder? It will be better organized.

Cheers
CalcLoverHK

#510 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 04 December 2019 - 11:35 AM

OK!
I'll organize them in the next update. ^_^


#511 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 04 December 2019 - 12:44 PM

Hi CalcLoverHK

 

On August we confirmed the bug of FA-124.

 

In the following page I added note for the bug;

 

"Note: FA-124 bug info. - files may be destroyed when multiple files are copied at once in right pane. Do not copy multiple files at once to right pane from left pane or outside of FA-124A. When get backup files into right pane of FA-124, you should trasfer the files back to calc and check their functionality for sure. If they are OK, then your backup files are OK.

 

I hope this helps.



#512 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 06 December 2019 - 08:40 AM

Here is new updated version. :)
 
2.40 beta  for for 9860G/GII series/Graph 35+USB/35+EII/75/85/95 (SD)
        -Change the specification of editor that the maximam number of stored cursor position has been increased from 7 to 16.
 
1.40 beta for CG10/20/50/Graph90+E.
        -Change the specification of editor that the maximam number of stored cursor position has been increased from 16 to 32.
 
--Same update--
        -Changed the specification that the timing of reading a subprogram is not when the program starts but when the Prog command is executed.
         As a result, the Prog command with a string variable as an argument is executed without restriction..
        -Fixed the bug when escape characters "\" and line break "CR" are included in the string.
        -Added specification that "\n" can be used as line break.
        -Improved error messages.
 
-Added the argument of Beep command that List can be used.
        (Format) Beep List 1(Hz), List 2(Length)
        (Example) {1000,2000,3000}-> List 5
                  {250,500,250}-? List 7
                  Beep List 5, List 7

  • Hlib2 likes this

#513 Hlib2

Hlib2

    Casio Freak

  • Members
  • PipPipPipPip
  • 142 posts
  • Gender:Male
  • Location:Ukraine
  • Interests:industrial electronics,
    graphing calculators

  • Calculators:
    fx-9860GII-2
    graph-100+
    fx-991DE_X
    ti-89_Titanium
    ti-voyage200
    ti-84+SE

Posted 07 December 2019 - 10:19 PM

Hi, sentaro21! Thank you for improving the function Beep List M, List N, and of course, for the CBASIC240beta itself. I plan to build into the calculator a low power broadband amplifier MSC1157 with standby mode and a miniature sound emitter. As for CBASIC, I do not have any proposals yet, it suits me completely in the latest version.

Edited by Hlib2, 08 December 2019 - 02:17 PM.


#514 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 08 December 2019 - 07:39 AM

Hi sentaro21

Some questions from cnCalc member:
- When does C.Basic officially release
- C.Basic cannot calculate calculus functions
- C.Basic can only have 10 local variables

My thoughts:
- C.Basic will officially released with the compiler version released at that time.

- The limit of local variable is because of the nest.

- C.Basic uses double-precision floating point calcualtion, so cannot calculate calculus correctly.

Are above answers right?

And I am requested for making Chinese version of PDF. I have to make it as soon as possible.

Cheers
CalcLoverHK

Edited by CalcLoverHK, 08 December 2019 - 07:40 AM.


#515 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 08 December 2019 - 08:57 AM

@Hlib2
Thanks! :D
I think it ’s an interesting attempt to incorporate an amplifier into the calculator.
If you have any new request for C.Basic, please do not hesitate. ^_^
 
 
@CalcLoverHK
Thanks for your support. :D

- C.Basic will officially released with the compiler version released at that time.

When the alpha version of the compiler "C:Basic" starts, "C.Basic" becomes the official version.
However, the timing is still undecided. ^_^
 

- The limit of local variable is because of the nest.

It is right. :D
However, it is possible to increase local variables by further restricting nesting.
 

- C.Basic uses double-precision floating point calcualtion, so cannot calculate calculus correctly.

The reason calculus is not supported is because the calculus algorithm for C.Basic has not been determined. :P
Once the calculus algorithm for C.Basic has been determined, it will be implemented. ^_^
 


#516 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

Posted 08 December 2019 - 12:57 PM

Hi sentaro21

Oh, I see. So do you try to find the sources of calculus algorithm written in C and test them on your own?

And one quite big request: ability to read and run compressed .g1m/.g3m file and compressed back to one.

In emulator, you can export multiple program files and it will compress them into one file only, and when you import this file, it will extract back to what programs it has, which is very convenient for me because I don't need to repeat the steps to import the file one-by-one. But in C.Basic, when I directly click it, it shows error message that it is unsupported file. I want to keep in C.Basic and don't want to switch to Casio Basic every time haha :P.

Cheers
CalcLoverHK

#517 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 09 December 2019 - 02:38 AM

Oh, I see. So do you try to find the sources of calculus algorithm written in C and test them on your own?

For example, in the case of numerical integration,
The Simpson method is easy but the accuracy is poor.
I'd like to implement the Gauss-Kronrod method, which is implemented as genuine Casio Basic, but I haven't found a clear source. :P
 
 

And one quite big request: ability to read and run compressed .g1m/.g3m file and compressed back to one.

Ok!
I would like to implement it in the next updates. ^_^


#518 acapde

acapde

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 10 December 2019 - 03:48 AM

Hi Sentaro21,

 

This might be a good starting point, it's a Gauss-25points-Kronrod-51points integration implementation that I ported from HP41 INTDIFFEQ Module by Jean-Marc Baillard.

 

Before running KRONROD, the function must be loaded as a program, similar to this:

 

Filename:FX

sin X→X  /whatever function, it must end saving the result in X

Return

 

------------------------------------------------------------------------------

 

Filename:KRONROD

10→N<CR> /Number of subintervals

"A"?→A<CR> /Lower limit

"B"?→B<CR> /Upper limit

/Load 64 nodes and weights

{64,1}->Dim Mat A<CR>

1.231760537267155E-1->Mat A[1,1]<CR>

6.158081806783294E-2->Mat A[2,1]<CR>

6.147118987142532E-2->Mat A[3,1]<CR>

6.154448300568508E-2->Mat A[4,1]<CR>

1.222424429903100E-1->Mat A[5,1]<CR>

6.112850971705305E-2->Mat A[6,1]<CR>

1.228646926107104E-1->Mat A[7,1]<CR>

6.053945537604586E-2->Mat A[8,1]<CR>

1.837189394210489E-1->Mat A[9,1]<CR>

1.194557635357848E-1->Mat A[10,1]<CR>

5.972034032417406E-2->Mat A[11,1]<CR>

2.438668837209884E-1->Mat A[12,1]<CR>

5.868968002239421E-2->Mat A[13,1]<CR>

3.030895389311078E-1->Mat A[14,1]<CR>

1.148582591457116E-1->Mat A[15,1]<CR>

5.743711636156783E-2->Mat A[16,1]<CR>

3.611723058093878E-1->Mat A[17,1]<CR>

5.595081122041232E-2->Mat A[18,1]<CR>

4.178853821930377E-1->Mat A[19,1]<CR>

1.085196244742637E-1->Mat A[20,1]<CR>

5.425112988854549E-2->Mat A[21,1]<CR>

4.730027314457150E-1->Mat A[22,1]<CR>

5.236288580640748E-2->Mat A[23,1]<CR>

5.263252843347192E-1->Mat A[24,1]<CR>

1.005359490670506E-1->Mat A[25,1]<CR>

5.027767908071567E-2->Mat A[26,1]<CR>

5.776629302412230E-1->Mat A[27,1]<CR>

4.798253713883671E-2->Mat A[28,1]<CR>

6.268100990103174E-1->Mat A[29,1]<CR>

9.102826198296365E-2->Mat A[30,1]<CR>

4.550291304992179E-2->Mat A[31,1]<CR>

6.735663684734684E-1->Mat A[32,1]<CR>

4.287284502017005E-2->Mat A[33,1]<CR>

7.177664068130844E-1->Mat A[34,1]<CR>

8.014070033500102E-2->Mat A[35,1]<CR>

4.008382550403238E-2->Mat A[36,1]<CR>

7.592592630373576E-1->Mat A[37,1]<CR>

3.711627148341554E-2->Mat A[38,1]<CR>

7.978737979985001E-1->Mat A[39,1]<CR>

6.803833381235692E-2->Mat A[40,1]<CR>

3.400213027432934E-2->Mat A[41,1]<CR>

8.334426287608340E-1->Mat A[42,1]<CR>

3.079230016738749E-2->Mat A[43,1]<CR>

8.658470652932756E-1->Mat A[44,1]<CR>

5.490469597583519E-2->Mat A[45,1]<CR>

2.747531758785174E-2->Mat A[46,1]<CR>

8.949919978782754E-1->Mat A[47,1]<CR>

2.400994560695322E-2->Mat A[48,1]<CR>

9.207471152817016E-1->Mat A[49,1]<CR>

4.093915670130631E-2->Mat A[50,1]<CR>

2.043537114588284E-2->Mat A[51,1]<CR>

9.429745712289743E-1->Mat A[52,1]<CR>

1.684781770912830E-2->Mat A[53,1]<CR>

9.616149864258425E-1->Mat A[54,1]<CR>

2.635498661503214E-2->Mat A[55,1]<CR>

1.323622919557168E-2->Mat A[56,1]<CR>

9.766639214595175E-1->Mat A[57,1]<CR>

9.473973386174152E-3->Mat A[58,1]<CR>

9.880357945340772E-1->Mat A[59,1]<CR>

1.139379850102629E-2->Mat A[60,1]<CR>

5.561932135356714E-3->Mat A[61,1]<CR>

9.95556969790498E-1->Mat A[62,1]<CR>

1.987383892330316E-3->Mat A[63,1]<CR>

9.992621049926098E-1->Mat A[64,1]<CR>

 

 

0→D<CR>

0→E<CR>

A→H<CR>

(B-A)/(2*N)→G<CR>

Do<CR>

G+H→H<CR>

64→I<CR>

1→F<CR>

Do<CR>

G*Mat A[I]→J<CR>

H-J→X<CR>

Prog "FX"<CR>

X→K<CR>

H+J→X<CR>

Prog "FX"<CR>

X+K→J<CR>

I-1→I<CR>

Mat A[I]*J+E→E<CR>

-F→F<CR>

If F>=0 Then <CR>

I-1→I<CR>

Mat A[I]*J+D→D<CR>

IfEnd<CR>

I-1→I<CR>

LpWhile I>2<CR>

H→X<CR>

Prog "FX"<CR>

X→J<CR>

Mat A[I]*J+E→E<CR>

J*Mat A1+D→D<CR >

G+H→H<CR>

N-1→N<CR>

LpWhile N>0<CR>

G*D→D<CR>

G*E→E<CR>

D<Disp> /Shows Gauss21-Integral result

E<Disp> /Shows Kronrod51-Integral result

 

------------------------------------------------------------------------------

 

Hope it helps.

Best regards.



#519 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 10 December 2019 - 05:35 AM

Thanks!! :D

It seems to work very well.
I will implement it in the next update. ^_^


#520 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 10 December 2019 - 02:08 PM

Hi sentaro21

 

Gauss-Cronrod has week point with periodical function.

Please check out following article;

https://egadget.blog...icFunc_Integral

 

This is in Japanese, so you are OK, but for anyone else please use Google translation.





Also tagged with one or more of these keywords: Casio Basic C.Basic

1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


    Joolanap