You are not logged in.
Hello all,
nice to join this forum.
I have a question about maths. I want to create an equation from data values. The equation should be something like A=B+k*C
I have a set of values for A, B and C and i want to connect them in order to find k. Which software should i use for that?
Thank you very much.
Offline
Hi Old_Trafford;
Welcome to the forum!
Paste the data into a post and I will fit it for you.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hello Mr. BobbyM
the data is huge and i cannot post it. Can you please tell me a methodology, so i can do it in the future again?
Thank you very much!
Offline
Hi;
You will need a program to do the fit for you. That would mean learning a complicated program.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Can you please suggest a program? I am good at learning software, and i would like to learn one powerful program.
If you cannot tell me a program here, please ''private message'' me.
Offline
I know how to use Matlab and Mathematica, but only for specific jobs. Can any of those two do the job?
Offline
R should be able to do it. Sage can do it.
Mathematica, Maple and Derive can do it easily but they cost money.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Which program would you use to do it for me before?
Is it easy to tell me the method so that i can do it?
We already own mathematica, and the other two are free(R and Sage).
Offline
Curve fitting requires you solve a big set of simultaneous equations at the very least. If you have a lot of data it can not be done by hand. I would use Mathematica or Maple because I am familiar with them.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Can you please tell me how to do it in Mathematica?
Offline
It is a single command:
This is some mock data:
data={{1,3,8},{2,5,13},{3,8,17}}
Fit[data,{1,b,c},{b,c}]
This is the result.
a= 7 b- c+4
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Thank you very much, i will try it now and see if it worked.
Thanks for your time
Offline
It will be a little bit more complicated then that, You will have to do some alignment with your data. Come back if you have a problem.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
ΟΚ i will try and come back if any problems occur
Offline
Hope it goes okay. But if not I will try to help.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I get this message:
Fit::fitd: First argument {{5.463`,5.271`},{2,5,13},{3,8,17}} in Fit is not a list or a rectangular array.
Can you imagine what is problem?
I have the excel file and i could send it to you, so you can also try to do it(if you have available time).
Offline
508.463 29.8554 33.3831
515.271 29.8752 33.5417
522.866 29.9544 33.6408
A B C
The first column is 3 values of A, the second is three values of B and the third is three values of C
Offline
how am i supposed to enter these into mathematica?
Offline
I remind you that i want an equation of this format: A=B+k*C , mainly i want to find k, but from inserting 4000 A,B and C values.
Last edited by Old_Trafford (2011-07-07 04:01:54)
Offline
Hi;
Give me a second to examine the output.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I could make it on excel, finding a linear connection between A,B and C, but i want to make it a little more complicated. I want to use the multiple correlation coefficient, which would also help me find more accurate values.
Offline
Hi Old_Trafford;
One problem at a time. I am still looking at your first questions.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hello! Sorry, take your time.
Offline
Here is the first problem:
{{5.463`,5.271`},{2,5,13},{3,8,17}}
The first element {5.463`,5.271`} only has two numbers in it.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Alright, thats really bad from my part
Offline