Skip to content

allow embedding python tuples in SR #14780

@burcin

Description

@burcin

Attached patch allows embedding Python tuples in symbolic expressions:

sage: t = SR._force_tuple((1, 2, x, x+1, x+2))
sage: t
(1, 2, x, x + 1, x + 2)
sage: t.subs(x = 2*x^2)
(1, 2, 2*x^2, 2*x^2 + 1, 2*x^2 + 2)
sage: t.op[0]
1
sage: t.op[2]
x

Includes pynac 0.3.2 update for explicit template instantiatitons

http://boxen.math.washington.edu/home/vbraun/upstream/pynac-0.3.2.tar.bz2

CC: @eviatarbach

Component: symbolics

Keywords: sd48

Author: Burcin Erocal, Volker Braun

Branch/Commit: aa7287f

Reviewer: Volker Braun, Jean-Pierre Flori

Issue created by migration from https://trac.sagemath.org/ticket/14780

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions