MathGroup Archive 2011

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

Search the Archive

Re: Expressions as images

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117412] Re: Expressions as images
  • From: Heike Gramberg <heike.gramberg at gmail.com>
  • Date: Thu, 17 Mar 2011 06:34:55 -0500 (EST)

Concerning your first point, have you tried HoldForm? You might need to nest several HoldForms to get
what you want. For example in the example you gave you could do something like:

HoldForm[((3 a b)/(25 x^2 y^2))^HoldForm[-3]/((4 a)/(5 x y^2))^HoldForm[-3]]


Heike.

On 15 Mar 2011, at 11:03, =8Aer=FDch Jakub wrote:

> Dear Mathgroup,
>
> I would like to create .png images from some expressions using Mathematica. It works, but it has two problems:
>
> 1) How to hold exactly the form in which I have entered the expression? For example this expression:
>
> ((3 a b)/(25 x^2 y^2))^-3/((4 a)/(5 x y^2))^-3
>
> (entered in 2D form using for example Palettes)
>
> is always simplified by Mathematica to:
>
> 1/(((3 a b)/(25 x^2 y^2))^3/((4 a)/(5 x y^2))^3)
>
> I tried to use Hold and Defer but it is always simplified.
>
>
> 2) Export is "optimising" images so that long expression is divided into more lines. How to keep it in one line? I tried the AspectRatio and ImageSize options, but without any success.
>
> Example (in original also entered in 2D form):
>
> Export["filename.png",
> Defer[(1/m^2 - (3 m)/n + 2/(m n)) (m^3 + Sqrt[16 m^4 n^6] + 5 n^5)],
> ImageResolution -> 300]
>
> Thanks for any info
>
> Jakub
>


  • Prev by Date: Re: mathematica fit data to inverse gamma distribution
  • Next by Date: Re: mathematica fit data to inverse gamma distribution
  • Previous by thread: Re: Expressions as images
  • Next by thread: Re: Expressions as images