Syntax error

33 views
Skip to first unread message

j4e8a16n

unread,
Mar 2, 2025, 4:43:18 AMMar 2
to tinspire


Ti complains about that:

Local res,temp,str,nheader,temp2,head,dhead,svar,usage
string(usage) = "- le nom de la fonction à dériver (souvent f ou g)- la variable de la fonction à dériver (souvent x ou t)- l'expression de la fonction à dériver"
If string(ex) = "0" Then Disp [usage] Endif

Thanks for your attention

Chhaya, Harshal S.

unread,
Mar 3, 2025, 2:43:06 PMMar 3
to tins...@googlegroups.com

 

Hi,

 

I am not 100% sure what the intent of the code is but I re-wrote it a little and it displays the “usage” string wen the “ex” variable is 0 and doesn’t display anything otherwise.

 

 

Local res,temp,str,nheader,temp2,head,dhead,svar,usage

Request "Ex? ",ex

usage:="- le nom de la fonction à dériver (souvent f ou g)- la variable de la fonction à dériver (souvent x ou t)- l'expression de la fonction à dériver"

If string(ex)="0" Then

  Disp usage

EndIf

 

 

The “Request” command is to test the code. I imagine it wouldn’t be needed in your main program.

 

Is this helpful?

 

Regards,

- Harshal

 

 

 

From: tins...@googlegroups.com <tins...@googlegroups.com> On Behalf Of j4e8a16n
Sent: Sunday, March 2, 2025 3:43 AM
To: tinspire <tins...@googlegroups.com>
Subject: [EXTERNAL] [tinspire] Syntax error

 

Ti complains about that: Local res,temp,str,nheader,temp2,head,dhead,svar,usage string(usage) = "- le nom de la fonction à dériver (souvent f ou g)- la variable de la fonction à dériver (souvent x ou t)- l'expression de la fonction à dériver"

ZjQcmQRYFpfptBannerStart

This message was sent from outside of Texas Instruments.

Do not click links or open attachments unless you recognize the source of this email and know the content is safe.

    Report Suspicious    ‌

ZjQcmQRYFpfptBannerEnd

--
--
To post to this group, send email to tins...@googlegroups.com
To unsubscribe send email to tinspire+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
The tns documents shared by group members are archived at
https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime

---
You received this message because you are subscribed to the Google Groups "tinspire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinspire+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tinspire/c3abd93a-4e0b-4a8d-90c2-f5b16f6dea19n%40googlegroups.com.

j4e8a16n

unread,
Mar 4, 2025, 12:10:06 PMMar 4
to tinspire
Define LibPub sd(ex,var,fct)=
Func
:Local usage
:string(usage) = "- le nom de la fonction à dériver (souvent f ou g)- la variable de la fonction à dériver (souvent x ou t)- l'expression de la fonction à dériver"
:If string(ex) = "help"
 Then Disp [usage]
 Endif
:Return zsderi(ex,var,fct,true,"")
:EndFunc

j4e8a16n

unread,
Mar 4, 2025, 8:36:05 PMMar 4
to tinspire
Thank you all  for your answers.

JPDaviau

Reply all
Reply to author
Forward
0 new messages