Code:
:Prompt Str1
:Equ►String(Str1,Y₁
:DelVar Y₂
:For(A,1,length(Str1
:If inString("+-",sub(Str1,A,1
:Then
:If sub(Str1,A,1)="+"
:Then
:Y₂+1→Y₂
:Else
:Y₂-1→Y₂
:End
:Else
:If inString("ABCDEFGHIJKLMNOPQRSTUVWXYZ",sub(Str1,A,1
:Then
:If A<length(Str1) and inString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",sub(Str1,A+1,1
:Then
:If A<length(Str1)-1 and inString("0123456789",sub(Str1,A+2,1
:Then
:sub(Str1,A,3→Str2
:Else
:sub(Str1,A,1→Str2
:End
:Else
:If A<length(Str1)-1 and inString("0123456789",sub(Str1,A+1,1
:Then
:sub(Str1,A,2→Str2
:Else
:sub(Str1,A,1→Str2
:End
:End
:End
:Y₁(Str2→Y₁(Str2)+Y₂
:End
:Y₁

I checked it in the editor, there were multiple error. What do you guys think?
I think it's gotten better than when I asked it to code TI basic months ago. It kept mixing c commands in the code. At least everything at a glance here seems to be TI basic commands.
Y1(Str2) is not a valid operation.

Y2+1→Y2 and Y2-1→Y2 are also not valid operations.

If you want a chemical equation balancer there are some good ones made by actual humans. chatGPT has no idea what it's doing.
Michael2_3B wrote:
Y1(Str2) is not a valid operation.

Y2+1→Y2 and Y2-1→Y2 are also not valid operations.

If you want a chemical equation balancer there are some good ones made by actual humans. chatGPT has no idea what it's doing.


Makes sense. kinda scary that it's gotten better though
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement