[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Saving symbolic variables in a database
From: |
Colin Macdonald |
Subject: |
Re: Saving symbolic variables in a database |
Date: |
Wed, 9 Mar 2016 23:33:01 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 09/03/16 20:20, Doug Stewart wrote:
> On Wed, Mar 9, 2016 at 1:05 PM, diego9j <address@hidden
> As a part of a bigger project, I need to store a symbolic variable (from
> symbolic package) into a postgres database (with database package).
>
>
> Would anything on http://wiki.octave.org/Symbolic_package
> help you?
>
> ff=function_handle(rhs(f))
Following is undocumented: I might break it anytime... Either
`sym(char(x))` or `sym(x.pickle)` should both restore x. So you can
save the string `x.pickle` to your database, then pass it through sym it
on load...
I filed this to improve the saving/loading of sym:
https://github.com/cbm755/octsympy/issues/376
Colin