Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Function vs. Manual exec return different results' topicStudent Support Forum > General > "Function vs. Manual exec return different results"

Next Comment >Help | Reply To Topic
Author Comment/Response
Nick
04/06/12 12:09pm

Hello-

I am having an issue where wrapping a set of operations on a function return different results from when I execute them manually.

For instance:

g[x_] := FullSimplify[x^(1/2), {x > 0, Element[x, Reals]}]

In[28]:= g[x^2]

Out[28]= Abs[x]

And yet...

In[30]:= FullSimplify[(x^2)^(1/2), {x > 0, Element[x, Reals]}]

Out[30]= x

How can I get g[x^2] to return x instead of Abs[x]?

Thanks!

URL: ,

Subject (listing for 'Function vs. Manual exec return different results')
Author Date Posted
Function vs. Manual exec return different results Nick 04/06/12 12:09pm
Re: Function vs. Manual exec return different r... Bill Simpson 04/09/12 5:22pm
Re: Function vs. Manual exec return different r... toen 04/12/12 07:58am
Re: Function vs. Manual exec return different r... Forum Modera... 04/12/12 11:58am
Re: Function vs. Manual exec return different r... Cody Creager 02/26/14 11:38pm
Next Comment >Help | Reply To Topic