Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to get just the numerical value/result' topicStudent Support Forum > General > Archives > "How to get just the numerical value/result"

Next Comment >Help | Reply To Topic
Author Comment/Response
Quantumboredom
04/29/10 05:04am

Hello. I am wondering if it is possible to get the pure result (meaning just the number) from functions like Reduce[]? For instance, if I do Reduce[somefittedfunction[x]==1,x,Reals] the result might be x = 1.2. But I often find myself wanting to insert this solution directly in a list, ready for further use or plotting. But the "x =" part of the output makes this impossible, forcing me to do this by hand, which can be a pain if I want to do the same thing again, just with a different base data set. Is there any way to either make a function return just the numeric result, or to somehow extract just the number from "x = 1.2"?

URL: ,

Subject (listing for 'How to get just the numerical value/result')
Author Date Posted
How to get just the numerical value/result Quantumboredom 04/29/10 05:04am
Re: How to get just the numerical value/result Gerrit 05/03/10 00:08am
Re: How to get just the numerical value/result Peter Pein 05/07/10 02:47am
Next Comment >Help | Reply To Topic