Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11234 > unrolled thread

Re: How to Extract Conditional Expression?

Started by"djmpark" <djmpark@comcast.net>
First post2012-08-05 22:04 +0000
Last post2012-08-05 22:04 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to Extract Conditional Expression? "djmpark" <djmpark@comcast.net> - 2012-08-05 22:04 +0000

#11234 — Re: How to Extract Conditional Expression?

From"djmpark" <djmpark@comcast.net>
Date2012-08-05 22:04 +0000
SubjectRe: How to Extract Conditional Expression?
Message-ID<jvmqlp$a97$1@smc.vnet.net>
That can't have been the actual expression you obtained from Mathematica. If
it was like the following you could use:

x -> ConditionalExpression[#1^2 + 3 #1 + 2 C[1] &,   C[1] \[Element]
Integers]
% /. C[1] -> 3  
f[x_] = x[y] /. % /. y -> x  

The other problem here is that you are trying to use x as a function name
(like f) and also as the argument. You should have used f as the symbol in
the statement that produced the ConditionalExpression in the first place -
if that was indeed the expression you obtained.

You should be able to copy the expression into the posting using the context
menu Copy As, Input Text.


David Park
djmpark@comcast.net 
http://home.comcast.net/~djmpark/index.html 


From: ScottG [mailto:sbg@acw.com] 


I have ...

x -> ConditionalExpression[#1^2 + 3 #1 + 2 C[1],   C[1] in Integers]

and I want

f[x_] = x^2 + 3 x + 6

How do I get there other than cut-and-paste?

Thanks for any insight.

Cheers, Scott



[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web