Hello.

You can use fslove if your equation is exact and leastsq if it is an
approximate relationship. But,in the first case you need to have the smae
number of parameters than observations and in the second one more
observations than parameters, whereas you seem to have less observations
(3) than parameters (4): you should have an infinite number of slutions!

Éric

2015-05-13 19:43 GMT+02:00 Kleper Oliveira Rocha <[email protected]>:

> Dear colleagues,
>
> I want to fit data to an equation like
> [image: Imagem inline 1]
>  where a, beta1, b and beta2 must be determined.
>
> The data are:
>
> y                     Pco        PH2
>
> 0.00495       1.0          0.1
> 0.00742       1.0          0.5
> 0.00525       1.0          4.0
>
> In the book of Fogler (Elements of Chemical Reaction Engineering) I have
> the answer
>
> a = 0.02527
> beta1 = 0.6166
> b = 2.4872
> beta2 = 1.0262
>
> How can I fit the data above to the equation in Scilab?
>
> Thanks in advance.
> *- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - *
> *Kleper de Oliveira Rocha*
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.scilab.org/mailman/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to