From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Babel language support for Mathematica Date: Fri, 13 Mar 2015 16:06:12 -0700 Message-ID: <0E109199-8E68-4B76-A1D9-20105FF0C1D3@haas.berkeley.edu> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWYes-0006fZ-B9 for emacs-orgmode@gnu.org; Fri, 13 Mar 2015 19:06:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWYep-0003LF-5r for emacs-orgmode@gnu.org; Fri, 13 Mar 2015 19:06:22 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWYep-0003L4-07 for emacs-orgmode@gnu.org; Fri, 13 Mar 2015 19:06:19 -0400 Received: by pacwe9 with SMTP id we9so1316200pac.1 for ; Fri, 13 Mar 2015 16:06:16 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: tririverwangyi@gmail.com I recently saw this posting about org support for Mathematica. Thanks = for writing this!=20 Unfortunately, while I can get it to work for simple things (e.g., 2+3), = even slightly more complex things don't seem to work. For example, = suppose I'd like to define a function f(x) =3D x + 3, and then calculate = f(5). In a MMA notebook, if I type f[x_] :=3D x+3 f[5] I get the answer 8. If I try the same code in an org-mode code block, = here's what happens: #+BEGIN_SRC mathematica=20 f[x_] :=3D x+3 f[5] #+END_SRC #+RESULTS: : Null Am I missing something obvious here? Thanks very much. Richard Stanton=