Trouble coding a simple variable solver

We're glad you came by, but you might find what you're looking for elsewhere.

TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it.

Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope.

Forum » Programming & Design / TI-Nspire Programming » Trouble coding a simple variable solver
Started by: SnowBot SnowBot
Date: 31 Jan 2020 19:27
Number of posts: 4
rss icon RSS: New posts
Summary:
The output is saying too many arguments, but I input 5 for 5 variables.
Trouble coding a simple variable solver
SnowBot SnowBot 31 Jan 2020 19:27

Define LibPub broadcrestqsolv(h,p,c,l,g)=

Func

Local

solve(q=(0.5+((q^(2))/((h+p)^(2)*l^(2)*2*g)))^(((3)/(2)))*c*((2)/(3))*√(((2)/(3))*g)*l,q)

Return q

EndFunc

the error I get when running it is "Too many arguments" but I’m inputting 5 numbers separated by comas, in their respective slot

imgurdotcom/a/YyuGanC

Last edited on 31 Jan 2020 19:31 by SnowBot
by SnowBot SnowBot , 31 Jan 2020 19:27
Re: Trouble coding a simple variable solver
(account deleted) 31 Jan 2020 22:39

Maybe five arguments for the selected command are too many. Even if you separate them commas. I don't know much about the Nspire, but I know that a calculator can throw you an error if you put too many arguments.


Hewwo, my name is Achak Claw. I was formerly BioHazard.

by (account deleted), 31 Jan 2020 22:39
Re: Trouble coding a simple variable solver
Evy_reis Evy_reis 11 May 2020 19:40

Well, i have the same problem.
It sometimes workes, but 99% of the time it doesn ́t.
It won ́t even work with just 2 or 3 variables in the solve command.

I feel you SnowBot31

by Evy_reis Evy_reis , 11 May 2020 19:40
Re: Trouble coding a simple variable solver
(account deleted) 11 May 2020 20:17

I understand you have the same problem, but this thread hasn't been active since January.

Don't reply to old threads (the last post is more than three months old); start a new thread instead.

Also, SnowBot SnowBot doesn't have a 31 at the end of his username, it is the day for the post of January 31st, 2020.


Hewwo, my name is Achak Claw. I was formerly BioHazard.

Last edited on 12 May 2020 01:57 by (account deleted)
by (account deleted), 11 May 2020 20:17
/forum/t-12998662/trouble-coding-a-simple-variable-solver#post-
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /