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 
[BASIC HELP] CAS.fsolve problem [Solved]
03-22-2019, 01:17 PM (This post was last modified: 03-23-2019 08:09 PM by Ziz.)
Post: #1
[BASIC HELP] CAS.fsolve problem [Solved]
Hello,

I'm trying to do a little program to solve an equation but the fsolve returns an error.

Pws(T)
BEGIN
T:=T+273.15;
LOCAL C1,C2,C3,C4,C5,C6,C7;
LOCAL Ps,P;

C1:=-5.6745359*10^3;
C2 := 6.3925247*10;
C3 := −9.6778430/10^(3);
C4 := 6.2215701/10^(7);
C5 := 2.0747825/10^(9);
C6 := −9.4840240/10^(13);
C7 := 4.1635019*10;
Ps:=CAS.fsolve(C1/T+C2+C3*T+C4*T^2+C5*T^3+C6*T^4+C7*ln(T)=ln(P),P,1000);
PRINT("Ps="+Ps);
RETURN Ps;
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[BASIC HELP] CAS.fsolve problem [Solved] - Ziz - 03-22-2019 01:17 PM
RE: [BASIC HELP] CAS.fsolve problem - Ziz - 03-23-2019, 08:08 PM
RE: [BASIC HELP] CAS.fsolve problem - DrD - 03-22-2019, 04:35 PM
RE: [BASIC HELP] CAS.fsolve problem - Ziz - 03-23-2019, 08:04 PM



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