The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
fsolve question
06-15-2015, 12:34 PM
Post: #1
fsolve question
Hello,

I’m new to PPL and have a question about fsolve. I’m trying to run this function:

export tdew2()
begin
HAngle:=0;
local x, y;
y:=fsolve(cos(x)=.5,x);
return y;
END;

When I do, I get this error message:

"fsolve(((cos(0))==0.5),0) Error: Bad Argument Value"

I can run: fsolve(cos(x)=.5,x) directly from the input line and get the correct answer. I get the same results on the emulator and the calculator, and in CAS and HOME mode. Can anyone tell me what I am doing wrong?

   
   

Any help would be greatly appreciated.

Paul
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
fsolve question - roadrunner - 06-15-2015 12:34 PM
RE: fsolve question - roadrunner - 06-15-2015, 01:19 PM
RE: fsolve question - DrD - 06-15-2015, 01:32 PM
RE: fsolve question - Angus - 06-19-2015, 10:09 AM
RE: fsolve question - DrD - 06-19-2015, 11:37 AM
RE: fsolve question - DrD - 06-19-2015, 10:18 AM
RE: fsolve question - Angus - 06-19-2015, 11:53 AM
RE: fsolve question - DrD - 06-19-2015, 12:57 PM



User(s) browsing this thread: 1 Guest(s)