Skip to content

Make symbolic versions of moebius, sigma, and euler_phi functions #8383

@zimmermann6

Description

@zimmermann6

I hit the following problem:

sage: f(x) = sigma(x)-x
...
TypeError: unable to convert x (=x) to an integer

Wouldn't it better to keep sigma(x) unevaluated for x not an integer?
Note that f = lambda(x):sigma(x)-x works but it less nice.

CC: @nexttime @benjaminfjones @eviatarbach @slel

Component: symbolics

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions