## 40 Reputation

5 years, 330 days

## Range of parameter in NonlinearFit...

Maple 2020

Hi,

I'd like to know, if it is possible to define any sort of range for parameters in NonlinearFit. E. g. I know that one of parameters should be somewhere between 0.2 - 0.4. I know there is a possibility of initalvalues, but using it doesn't lead into this range.

Thanks.

## How to print row number from external fi...

Maple 2020

Hi,

I need to find out how to print the number of row or the numbers on right based only on the combination of the two numbers in first two columns. The external file looks like this:

I have prepared possible combinations of numbers and I need to read the numbers on the right which belongs to this combination. There is no such thing as the sum of two numbers = number of row, so it can't be done this easy.

Can somebody help please? Thanks a lot

## How to write just a part of axis label i...

Maple 2020

Hello,

is there any possibility how to write just a part of axis label e.g. in Italic? For example if I want want a label to be "ln(h)" and i want just the "h" to be written in Italic font.

Thanks a lot.

## fsolve returns just what i wrote...

Maple 2020

Hello,

when trying to solve equation using fsolve, it returns just what i wrote and didn't solve. Can anyone help? I tried all i know. File is attached below.

Thanks a lot.

II.01.mw

## When running a for do cycle the first tw...

Maple

Hi,

when running a for do cycle the first two solutions are exact the same numbers, which is not correct. Can someone plesa help me fix this problem?

Thanks a lot.

 > restart
 > tmin:=10: #°C
 > tmax:=70: #°C
 > Tmin:=tmin+273.15:
 > Tmax:=tmax+273.15:
 > T:='T':
 > i:=0:
 >
 > for T from Tmin by 2 to Tmax+1.25 do i:=i+1: a12:=2305.28444347652 - 9.14490843016421*T + 0.00680052257590234*T^2: a21:=-6665.24838284836 + 46.0897018087247*T - 0.0694991633494123*T^2: alfa:=0.3: x2:=1-x1: lng1:=x2^2*(tau21*(G21/(x1+x2*G21))^2+tau12*(G12/((x2+x1*G12)^2))): lng2:=x1^2*(tau12*(G12/(x2+x1*G12))^2+tau21*(G21/((x1+x2*G21)^2))): G12:=exp(-alfa*tau12): G21:=exp(-alfa*tau21): tau12:=a12/T: tau21:=a21/T: lnga1:=subs(x1=xa1,lng1): lngb1:=subs(x1=xb1,lng1): lnga2:=subs(x1=xa1,lng2): lngb2:=subs(x1=xb1,lng2): r1:=lnga1+ln(xa1)=lngb1+ln(xb1): r2:=lnga2+ln(1-xa1)=lngb2+ln(1-xb1): r:=fsolve({r1,r2},{xa1=0..0.22,xb1=0.22..1}): assign(r): xA1[i]:=xa1: xB1[i]:=xb1: print(i,T,xA1[i],xB1[i]); unassign('r1','r2','r','xa1','xb1'): od:
 (1)
 >