KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
log_10(10^x) returns x*ln(10)/ln(10) on my calc, that's unsimplified but correct.
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3662
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
I mean log(10^x) not log_10(10^x), because the base 10 can be omitted. Sorry about that.parisse wrote:log_10(10^x) returns x*ln(10)/ln(10) on my calc, that's unsimplified but correct.
-
stevenmbiz
Niveau 2: MI2 (Membre Initié)- Posts: 10
- Joined: 29 Aug 2014, 00:07
- Gender:
- Calculator(s):→ MyCalcs profile
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
That's a different convention, and I can't change that. log is a synonym for natural logarithm in the standard C library, and many scientific softwares adopt this convention. It's unfortunate that the template or log key adds a 10 when displayed, while the 10 is not added to the arguments to the log function.
Is there any way to catch the log key in the lua code and return log10 instead?
Is there any way to catch the log key in the lua code and return log10 instead?
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3662
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
parisse wrote:Is there any way to catch the log key in the lua code and return log10 instead?
I tried some things, but so far, no luck... (it's because of the MathBox inside the D2Editor, I don't think we can control things that far...)
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14744
- Images: 1119
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
Perhaps, I can redirect log to log10 for the nspire only, and make log10 act like logb.
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3662
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
Yes, it works. Archive updated on my webpage.
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3662
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
Good
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14744
- Images: 1119
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
Yes, the log function works now. A similar issue arose in integration by parts as shown above, if I omit the * between e^x and x the answer is undef. But in the cas software this syntax error can be corrected automatically and return the right answer. I'm wondering if this situation can be dealt with in the same way.
You do not have the required permissions to view the files attached to this post.
-
stevenmbiz
Niveau 2: MI2 (Membre Initié)- Posts: 10
- Joined: 29 Aug 2014, 00:07
- Gender:
- Calculator(s):→ MyCalcs profile
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
Well, it's not a syntax error, it's "just" that implicit multiplication is understood for non-ambiguous cases (there are some where it is, and then there is an error message).
On Xcas, it seems that some simple implicit multiplications are handled, but not all, like this one. And parisse will probably not change the parser as he stated here.
But who knows, let's wait for his answer
On Xcas, it seems that some simple implicit multiplications are handled, but not all, like this one. And parisse will probably not change the parser as he stated here.
But who knows, let's wait for his answer
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14744
- Images: 1119
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire
Understood, I'm interested about the answer too.
-
stevenmbiz
Niveau 2: MI2 (Membre Initié)- Posts: 10
- Joined: 29 Aug 2014, 00:07
- Gender:
- Calculator(s):→ MyCalcs profile
Who is online
Users browsing this forum: ClaudeBot [spider] and 12 guests