> It is a good idea to run "Gosub c" only once at the beginning.
This happens if one installs the loop afterwards.
In the future I put the '#Mat 0 command in all my programs.
Posted 24 September 2019 - 10:23 AM
> It is a good idea to run "Gosub c" only once at the beginning.
This happens if one installs the loop afterwards.
In the future I put the '#Mat 0 command in all my programs.
Posted 25 September 2019 - 08:09 AM
Edited by sentaro21, 25 September 2019 - 08:15 AM.
Posted 25 September 2019 - 10:40 AM
Posted 25 September 2019 - 11:16 AM
Thanks CalcLoverHK
Posted 26 September 2019 - 08:38 AM
Hi sentaro21,
What is the result if I run this code:
Try 0/0 Except "Error" Except 40 "Divided by zero" TryEnd
If both conditions are matched, what will the processing do?
Cheers,
CalcLoverHK
Posted 26 September 2019 - 08:55 AM
Only the first match is valid.
Try 0/0 Except "Error" // valid Except 40 "Divided by zero" TryEnd
Edited by sentaro21, 26 September 2019 - 08:56 AM.
Posted 26 September 2019 - 01:20 PM
Hi sentaro21,
I found some description that is about fx-9860GII in CG manual. Should I need to correct it?
Cheers,
CalcLoverHK
Posted 26 September 2019 - 10:56 PM
Yes, it needs to be fixed.
Thanks!
Posted 27 September 2019 - 07:56 AM
Hi sentaro21,
I also found some obfuscated words (such as ?@, � etc.). They may have when you translate the Japanese to English. I have corrected them.
Cheers,
CalcLoverHK
Posted 27 September 2019 - 01:20 PM
Edited by sentaro21, 27 September 2019 - 01:52 PM.
Posted 27 September 2019 - 01:24 PM
Hi sentaro21,
Thanks for updates. But if you don't mind, would you please try to spell my name correctly next time?
Cheers,
CalcLoverHK
Edited by CalcLoverHK, 27 September 2019 - 01:38 PM.
Posted 27 September 2019 - 01:52 PM
Aaaah!! Very sorry!!
It will be corrected sequentially.
Edited by sentaro21, 27 September 2019 - 01:52 PM.
Posted 28 September 2019 - 10:30 PM
Posted 28 September 2019 - 11:39 PM
75->Z "Z[Ohms]="?()Z
75->Z Sprintf("%.2f",Z)->Str 1 "Z[Ohms]="?()Str 1 Exp(Str 1)->Z
Edited by sentaro21, 29 September 2019 - 10:37 AM.
Posted 29 September 2019 - 05:32 PM
Thank you very much Sentaro, it works exactly as I needed.
Best!
Posted 08 October 2019 - 07:10 AM
Posted 09 October 2019 - 12:09 PM
Dear Sentaro, I have two proposals for the next version(s)
1) I would like to have at least a one-step-undo. Sometimes I erroneously delete a complicated to reach keyword, or I don't know anymore which letter or number I just deleted by accident.
2) In my map projection program I initialized a large list by a command like
[ [0,1] [2,3]...]->Mat c
I assume that the large matrix is stored first in the Ans memory or any other temporary place and then transferred to Mat c. So I need the double memory for that matrix. It would like to store more elements in my program.
If the storing process works the way I roughly sketched here: Would it be possible to have another initialization mechanism, e.g. some DATA / READ command like in older Basic versions?
Thank you in advance, Uwe.
Posted 10 October 2019 - 09:48 AM
Posted 10 October 2019 - 12:29 PM
This are good news! For me, it is amazing how far I can come with a pocket computer.
A few days ago I read again the reference manual of C.Basic. I found some very interesting features, which I did not mentioned before. The most important are the abbreviated matrix notation like a[16] or even a8, the usage of variables like _myvar and the usage of exceptions.
Posted 11 October 2019 - 04:53 AM
Thanks!!
C.Basic aims to use the calculator like a pocket computer.
I would be happy if those fertures were applied effectively.
Posted 13 October 2019 - 12:46 PM
Posted 13 October 2019 - 01:24 PM
Edited by CalcLoverHK, 13 October 2019 - 01:31 PM.
Posted 13 October 2019 - 03:26 PM
Undo! Great!!
May you please describe shortly, how the new matrix initialization works?
Edited by piu58, 13 October 2019 - 03:27 PM.
Posted 14 October 2019 - 12:21 AM
Posted 14 October 2019 - 04:27 AM
Thank you again.
I improved my map sketching program, only for CG series
http://fg-kometen.vd...mp/KARTPRJC.txt
Please keep in mind, that I don't store teh program forever at that place, so please copy it to your PC / PPC.
I changed:
- more coordinate points thanks the improved matrix init
- I used the place at the screen better
- I had the feeling that the points at the screen are too small . So I set an additional point which is randomly didrtibutetd around the original one.
If you don't like the last feature, please set a return after the Black Plot x,y command in subroutine P.
Posted 14 October 2019 - 08:08 AM
Lbl P'fette Punkte Black Plot x,y If Abs (x-v)<30 And Abs (y-w)<30 Plot (x+v)/2,(y+w)/2 IfEnd x->v y->w Return
Posted 14 October 2019 - 10:00 AM
I thought about lines which is similar.
There are problems if there are unconnected region. My original data is fit fort that, a new region is marked. Because I use a sub set of the original 5700 points I could not recuse these data.
I try it out anyway. May be it doesn't make much diseaster.
Posted 14 October 2019 - 12:34 PM
[ [-27304, -13491] [-27304, -13392] [-26666, -13263] ... ].w->Mat c.w Mat c[i,0]/10000
Posted 15 October 2019 - 05:44 AM
Dear C.Basic enthusiasts,
I got a very nice version of my map program now. Try it out!
I followed the indication of sentaro and stored the coordinates as words instead of float. I did not recuse all of the 5'719 points, but we have now 3'813 points. That is enough for a decent map. No need to plot extra points.
The link is the same as before, I hope you don't mix both versions:
http://fg-kometen.vd...mp/KARTPRJC.txt
The program uses nearly all of the memory which requires some preparation:
- first convert the program to .g3m . Please don't start the .txt directly.
- you have to run memory optimization (Menu "tan" at my CG-20) just before starting the program
- if you want to restart the program, you have to rum mem optimization again.
Sorry for that inconvenience, but the result look real nice. Here we have the equirectangular projection which is the simples one form mathematical point of view:
Edited by piu58, 15 October 2019 - 05:47 AM.
Posted 15 October 2019 - 07:33 AM
'#Mat 0
'#_Mat _0
Posted 16 October 2019 - 07:30 AM
Posted 17 October 2019 - 02:50 AM
Posted 18 October 2019 - 07:56 AM
Hi sentaro21,
What is the difference between RGB({R,G,B}) and RGB(R,G,B )?
Cheers,
CalcLoverHK
Edited by CalcLoverHK, 18 October 2019 - 07:57 AM.
Posted 18 October 2019 - 08:30 AM
Posted 24 October 2019 - 11:19 AM
Dear Sentaro,
while programming more and more I tend to use integer variables in for loops. The 'normal' variable is free for another purpose then.
I have the problem that I cannot get a % sign in an easy way. Would it be possible to a a shortkey for that?
I looked at the calculator and saw that Shift-Optn and Shift-3 are still unused. At Shift-3 I am not source, it seems to return a getkey code.
Posted 24 October 2019 - 12:09 PM
Ok!
There are three ways to enter %.
The 1st way is
+ (MENU)- (%)
The 2nd way is
+ (Extend)- (%)
The 3rd way is
(CHAR)- (SYMBOL)-select %-
+ (CHAR)- (SYMBOL)-select %-
From the next time after selection %
(CHAR)- (%)
+ (CHAR)- (%)
And after entering %
+ (%) ' top of history list
If “%” is newly assigned,
Edited by sentaro21, 24 October 2019 - 12:23 PM.
Posted 24 October 2019 - 12:35 PM
I tried this out. Optn F5 F6 is easy enough. Thank you for your help.
Posted 27 October 2019 - 08:54 AM
Posted 28 October 2019 - 05:28 AM
> Added feature that % can be entered by Alpha+ .
Thank you very much! That is a fine idea.
Posted 28 October 2019 - 08:07 AM
General →
Your Projects →
Inside Casio Basic is now to be preparedStarted by Krtyski , 02 Dec 2016 Casio Basic C.Basic |
|
|
0 members, 1 guests, 0 anonymous users