[R] computer algebra in R

2023-11-29 Thread Leo Mada via R-help
Dear Konrad, I presume that the system can be written as follows, where h0, d0, ga0, kga and kd are given: err1 = h + hd + hga - h0; err2 = d + hd - d0; err3 = ga + hga - ga0; err4 = hga - kga*h*ga; err5 = hd - kd*h*d; All error terms should be zero. Do you need (a) the symbolic solution or (b

Re: [R] computer algebra in R

2023-11-28 Thread Søren Højsgaard via R-help
Just wanted to mention that the caracas package *may* be better at solving this problem Best Søren -Original Message- From: Konrad via R-help Reply-To: Konrad To: R-help@r-project.org Subject: [R] computer algebra in R Date: Tue, 28 Nov 2023 11:03:36 +0100 Dear all, I'm curr

[R] computer algebra in R

2023-11-28 Thread Konrad via R-help
Dear all, I'm currently working on converting mathematica code (https://github.com/ASDSE/thermosimfit/blob/master/Packages/thermoHD-Comp/thermoCacheHD-1Comp.m) to R. The code is related to solve algebraic systems. eqthermo = {h0 == h + hd + hga, d0 == d + hd, ga0 == ga + hga, kga == hga