Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: ToExpression[..,TexForm] does not seem to work on

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104392] Re: [mg104351] ToExpression[..,TexForm] does not seem to work on
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 30 Oct 2009 02:18:15 -0500 (EST)
  • Reply-to: hanlonr at cox.net

I have version 7.0.1

$Version

7.0 for Mac OS X x86 (64-bit) (February 19, 2009)

s = TeXForm[Sum[f[n], {n, 1, m}]]

\sum _{n=1}^m f(n)

ToExpression["\\sum _{n=1}^m f(n)", TeXForm]

Sum[f[n], {n, 1, m}]


Bob Hanlon

---- "Nasser M. Abbasi" <nma at 12000.org> wrote: 

=============

From: "Bob Hanlon"

> Put a space after sum in the TeX
>
> s = TeXForm[Sum[f[n], {n, 1, m}]]
>
> \sum _{n=1}^m f(n)
>
> Note the space after sum in the above output
>
> ToExpression["\\sum _{n=1}^m f(n)", TeXForm]
>
> Sum[f[n], {n, 1, m}]
>
> ToExpression["\\sum _ {n=1}^m f(n)", TeXForm]
>
> Sum[f[n], {n, 1, m}]
>
>
> Bob Hanlon
>


hello;

I did.

With or without space, I get the same error. Which version you used? I am 
using version 7

In[1]:= ToExpression["\\sum _{n=1}^m f(n)", TeXForm]
During evaluation of In[1]:= ToExpression::esntx:Could not parse \sum 
_{n=1}^m f(n) as Mathematica input.
Out[1]= $Failed

Thanks
--Nasser




  • Prev by Date: Re: Distribution of state occupancies in a multistate Markov model
  • Next by Date: Re: Re: Re: old vs new(V7) BarChart3D
  • Previous by thread: Re: ToExpression[..,TexForm] does not seem to work on
  • Next by thread: Re: ToExpression[..,TexForm] does not seem to work on