Maxima error - draw2d

Maxima error - draw2d - Earlier posted fit.sm gives error - Messaggi

#1 Pubblicato: 15/07/2021 12:49:18
timgow

timgow

0 apprezzamenti in 27 post.

Gruppo: User

Hi,
I'm importing digitised graph data and wish to use a curve fit function. I have found only the Maxima 'Fit()' function, with reference to mkraska's file fit.sm (thank you mkraska).

https://en.smath.com/forum/yaf_postst7475_Curve-fit-function.aspx

I get an error when I open this file in my installation. I have installed maxima-5.45.1-win64.exe in a subdirectory in the Smath installation location.

Please see the error in the image attached.

Fit-error-15Jul21.PNG

Does this point to a known problem?

All help is much appreciated.
#2 Pubblicato: 15/07/2021 13:45:20
Fridel Selitsky

Fridel Selitsky

520 apprezzamenti in 451 post.

Gruppo: User

My file opens without error
Fit1.sm (15,26 KiB) scaricato 1270 volta(e).
#3 Pubblicato: 15/07/2021 13:57:29
timgow

timgow

0 apprezzamenti in 27 post.

Gruppo: User

I have shutdown and reopened and the Draw2d error has disappeared.
In mkraska's example, a result could be produced for L:=()= but mine can't "A - not defined", any ideas why this would be?
#4 Pubblicato: 15/07/2021 13:59:13
timgow

timgow

0 apprezzamenti in 27 post.

Gruppo: User

Ber7, thank you for checking for me, not sure why now ok.
#5 Pubblicato: 15/07/2021 15:54:17
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I'm importing digitized graph data and wish to use a curve fit function


1. Cholesky is the first classroom.
Rarely useful as very few physical phenomenons are poly type.
You can trick the exponents of the monomials.
2. Next is Padé rational fraction... needs lot more data points.
3. Else are model function [imagination is the limit].
That is a season Classroom !
The core component is Cholesky in Conjugate Gradient.

Cholesky.PNG

#6 Pubblicato: 15/07/2021 16:39:39
timgow

timgow

0 apprezzamenti in 27 post.

Gruppo: User

Jean,
Thank you for the illustration of Cholesky. My property curves are well behaved as in your example so I'm sure that this will be ok.
Much appreciated,
Tim
#7 Pubblicato: 15/07/2021 17:09:30
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote

I have shutdown and reopened and the Draw2d error has disappeared.
In mkraska's example, a result could be produced for L:=()= but mine can't "A - not defined", any ideas why this would be?



You have to switch to optimization none in the context menu. The result of Fit() is displayed as list of equations name=value. If you try to numerically evaluate this, then you get the error that A isn't defined.

Assign() converts the equations into assigments, so that further down the variables have numerical values.

2021-07-15 22_08_14-SMath Studio - [Fit1.sm_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 Pubblicato: 15/07/2021 17:20:56
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Jean,
Thank you for the illustration of Cholesky.
My property curves are well behaved as in your example so I'm sure that this will be ok.
Much appreciated,
Tim


Your data set is OK, compatible to poly 3.
More visit c/w error bar.
Thanks for your appreciation ... Cheers ... Jean

Poly 0 Read First Edu.sm (37,07 KiB) scaricato 1223 volta(e).
Genfit Kirby_2 [Reduced] Copy.sm (81,39 KiB) scaricato 1119 volta(e).
Genfit Rational Type J_8 Copy.sm (65,8 KiB) scaricato 1196 volta(e).

  • Nuovi post
  • Nessun nuovo post