Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Converting result to ASCII-art

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56980] Re: Converting result to ASCII-art
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 12 May 2005 02:32:13 -0400 (EDT)
  • References: <d5s978$lid$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
it all depends what the receiver wants to do with the formula.
A simple solution would be:
Solve[a x^4 + b x^3 + c x + d == 0, x] // InputForm
This can be copied and pasted without problems.
If he wants C code you may also try:
Solve[a x^4 + b x^3 + c x + d == 0, x] // CForm
There is also FortranForm.

Homever, if the graphic, 2D form is needed, copy and paste it into a 
word document.

SIncerely, Daniel


DJ Craig wrote:
> When running MathKernel from command line in OS X, it shows expressions
> kind of like ASCII-art.  I have a very long equation that I need to
> convert to ASCII, but when doing this the way I normally do, using
> Terminal and copying and pasting, it comes out looking like a mess,
> because it does too much line wrapping.  What I am trying to display is
> the result of:
> Solve[a x^4+b x^3+c x+d==0,x]
> I've tried displaying this in command line with and without MatrixForm.
>  Is there some other form that I should try?
> What I really need is some way that I can send this result to someone
> (who doesn't have Mathematica, MathReader, or any type of MathML
> reader), so that they can copy and paste out of it.  A PDF would be
> fine, but when I use Print to create a PDF, the PDF that it creates
> can't be read by either Preview or Acrobat.
> 


  • Prev by Date: Re: ChineseRemainder
  • Next by Date: Re: MapThread
  • Previous by thread: Re: Converting result to ASCII-art
  • Next by thread: Re: Converting result to ASCII-art