"Eric Schulte" writes:
[...]
> Alright, I've made two changes, first, it is now possible to pass elisp
> vectors through to code blocks, e.g.,
>
> #+begin_src emacs-lisp :var data=[1 2 3]
> (elt data 1)
> #+end_src
> #+results:
> : 2
>
> Second, I've added a slightly hackey but seemingly nece
"Eric Schulte" writes:
[...]
> Alright, I've made two changes, first, it is now possible to pass elisp
> vectors through to code blocks, e.g.,
>
> #+begin_src emacs-lisp :var data=[1 2 3]
> (elt data 1)
> #+end_src
> #+results:
> : 2
>
> Second, I've added a slightly hackey but seemingly neces
Eric S Fraga writes:
> "Eric Schulte" writes:
>
>> Eric S Fraga writes:
>
> [...]
>
>>>
>>> Further on this, any suggestions on how to pass a vector variable to
>>> calc using babel? I tried
>>>
>>> #+begin-src org
>>> #+begin_src calc :var y=[1 2 3]
>>> 3 y
>>> #+end_src
>>> #+end_src
>>>
"Eric Schulte" writes:
> Eric S Fraga writes:
[...]
>>
>> Further on this, any suggestions on how to pass a vector variable to
>> calc using babel? I tried
>>
>> #+begin-src org
>> #+begin_src calc :var y=[1 2 3]
>> 3 y
>> #+end_src
>> #+end_src
>>
>> but get an error that says
>>
>> : Ba
Eric S Fraga writes:
> "Eric Schulte" writes:
>
>> Christopher Allan Webber writes:
>>
>>> (failed to wide-reply initially)
>>>
>>> I just had use for this for some quick calculations I wanted to add to
>>> one of my files, but...
>>>
>>> Any idea why variables inside of parentheses don't work,
"Eric Schulte" writes:
> Christopher Allan Webber writes:
>
>> (failed to wide-reply initially)
>>
>> I just had use for this for some quick calculations I wanted to add to
>> one of my files, but...
>>
>> Any idea why variables inside of parentheses don't work, but variables
>> outside of them
Christopher Allan Webber writes:
> (failed to wide-reply initially)
>
> I just had use for this for some quick calculations I wanted to add to
> one of my files, but...
>
> Any idea why variables inside of parentheses don't work, but variables
> outside of them do?
>
> #+BEGIN_SRC calc :var testv
(failed to wide-reply initially)
I just had use for this for some quick calculations I wanted to add to
one of my files, but...
Any idea why variables inside of parentheses don't work, but variables
outside of them do?
#+BEGIN_SRC calc :var testvar=9000
testvar - 200
#+END_SRC
#+results:
: 8800
"Eric Schulte" writes:
> Alright,
>
> I've just pushed up support for variables. The following should all
> work as expected (or at least as I would expect them to). Note that
> most all of these blocks would have an effect on the calc stack. I
> think the next step would be to allow different
Alright,
I've just pushed up support for variables. The following should all
work as expected (or at least as I would expect them to). Note that
most all of these blocks would have an effect on the calc stack. I
think the next step would be to allow different sessions to specify
different stack
Forgot to CC the list et al.
"Eric Schulte" writes:
> Eric S Fraga writes:
[...]
>> I now wonder if it would be worthwhile discussing the choices you have
>> made regarding stack versus algebraic evaluation. I would rather have
>> the quote mean an algebraic expression, just from the simple
Eric S Fraga writes:
> "Eric Schulte" writes:
>> alright, thanks for sticking with this. You are definitely now using
>> the latest code. I believe the newest version of the ob-calc-eval
>> function should work -- at the very least it should give a nicer error
>> message. Could you please req
"Eric Schulte" writes:
> alright, thanks for sticking with this. You are definitely now using
> the latest code. I believe the newest version of the ob-calc-eval
> function should work -- at the very least it should give a nicer error
> message. Could you please require update again and let me
Eric S Fraga writes:
> "Eric Schulte" writes:
>
>> Eric S Fraga writes:
>>
>>> Eric,
>>>
>>> This is really nice!
>>>
>>> I had a problem initially in that calc-push-list was undefined. I had
>>> to initiate calc first so maybe a
>>>
>>> : (require 'calc)
>>>
>>
>> Ah yes, that is in the ob-ca
"Eric Schulte" writes:
> Eric S Fraga writes:
>
>> Eric,
>>
>> This is really nice!
>>
>> I had a problem initially in that calc-push-list was undefined. I had
>> to initiate calc first so maybe a
>>
>> : (require 'calc)
>>
>
> Ah yes, that is in the ob-calc.el file, but not in the code snippet
Just FYI, I've just pushed up another fix for ob-calc.el which I found
was required to avoid errors on evaluation of calc code blocks.
Best -- Eric
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
Eric S Fraga writes:
> Eric,
>
> This is really nice!
>
> I had a problem initially in that calc-push-list was undefined. I had
> to initiate calc first so maybe a
>
> : (require 'calc)
>
Ah yes, that is in the ob-calc.el file, but not in the code snippet I
shared. I'll commit this entire fil
Eric,
This is really nice!
I had a problem initially in that calc-push-list was undefined. I had
to initiate calc first so maybe a
: (require 'calc)
is required to ensure the functions you use are available?
Then, out of the three examples you give, only one (3^3) worked. The
others give me
Cool!
- Carsten
On Oct 29, 2010, at 8:42 AM, Eric Schulte wrote:
"Eric Schulte" writes:
Although I'm not familiar with using Calc as anything more than a 1-
off
calculator in the bottom of the frame (i.e. M-x calc) this sounds
like a
good approach to using calc to execute code blocks.
"Eric Schulte" writes:
>
> Although I'm not familiar with using Calc as anything more than a 1-off
> calculator in the bottom of the frame (i.e. M-x calc) this sounds like a
> good approach to using calc to execute code blocks.
>
Did I mention I'm not familiar with Calc.
I've thrown together a
Hi Matthew,
Matthew Oesting writes:
> A few of us at my institution have started using CALC in our documents
> (not embedded, which is far too clumsy for most of us, but C-x * u and
> simple embedded phrases, often to the tune of several pages) to use
> Emacs text files rather like Maple and Mat
A few of us at my institution have started using CALC in our documents (not
embedded, which is far too clumsy for most of us, but C-x * u and simple
embedded phrases, often to the tune of several pages) to use Emacs text files
rather like Maple and Mathematica files. We're starting to use GIT a
22 matches
Mail list logo