FindRoot solving of Excel input columns

AI Thread Summary
The discussion revolves around automating numerical solutions in Mathematica using data from an Excel spreadsheet. The user has successfully utilized the FindRoot function to solve equations for a specific dataset but seeks assistance in automating the process for larger datasets. They aim to import four columns of data from Excel, with specific equations defined for variables t1, t2, and t3, and then export the results alongside one of the columns back to Excel. The user has attempted to implement a For loop for this automation but has not succeeded. Suggestions include considering alternative software like R for handling large datasets, although the relevance of the original problem is questioned due to its age.
itedin
Messages
2
Reaction score
0
Hi, I've posted another thread asking for general help on how to solve numerically with excel. Here is my specific situation if anybody is well versed with Mathematica programming. I'd appreciate any help.

I've successfully created a FindRoot to solve eqn's for one set of data points. However, I really need to automate this... here's what I'm working on:

A's are columns of excel data with a several hundred rows of data.
k's are constants
t's are variables to solve and plot.

k1=#; k2=#; k3=#;
Eqn1 = t1 - k1*Log[ 1 + (A1/A3)*(1 - exp(-t3)*(exp(-t2) ];
Eqn2 = t2 - k2*Log[ 1 + (A2/A3)*(1 - exp(-t3/) ];
Eqn3 = t3 -k3*t2;
FindRoot[{Eqn1==0,Eqn2==0,Eqn3==0}, { {t1,1},{t2,1},(t3,1} } ]

What I'd like to do is...
1. import 4 column (A1,A2,A3,A4) excel sheet, where A4 is carried through and not processed.
2. export 4 column results for (t1,t2,t3,A4) to xls, and plot t1 vs A4, t2 vs A4, t3 vs A4 in mathematica.

I've read through help to no avail... and have tried some kind of For loop on this FindRoot, and haven't been successful.

Much appreciate anybody's help.
PS - No budget currently for Wolframs Excel applet for Mathematica ;-)

Regards,
John
 
Last edited:
Computer science news on Phys.org
I don't use mathematica, so I can't help with that, but there are other software, such as the freely available software R, which are made for reading, manipulating and writing large data sets:
https://www.r-project.org/
 
Last edited:
11+ years old, ...not too sure that the problem is relevant any longer...
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...

Similar threads

Replies
1
Views
5K
Replies
7
Views
1K
Replies
1
Views
7K
Replies
15
Views
4K
Replies
1
Views
2K
Replies
7
Views
5K
Replies
7
Views
4K
Back
Top