Opened 3 years ago

Closed 3 years ago

## #28993 closed defect (fixed)

# Adding keyword `prec` to the element constructor of Laurent series

Reported by: | Sebastian Oehms | Owned by: | |
---|---|---|---|

Priority: | major | Milestone: | sage-9.1 |

Component: | commutative algebra | Keywords: | Laurent series, Puiseux series |

Cc: | Travis Scrimshaw | Merged in: | |

Authors: | Sebastian Oehms | Reviewers: | Travis Scrimshaw |

Report Upstream: | N/A | Work issues: | |

Branch: | 87cd023 (Commits, GitHub, GitLab) | Commit: | 87cd023005a814a14e5fb1785bdd5cc6c267dfda |

Dependencies: | Stopgaps: |

### Description

Currently, we have a keyword `prec`

for power series, but not for Laurent series. A consequence of this is that the function `qexp_eta`

cannot be applied to Laurent series, as observed in this blog post, for example.

sage: L.<q> = LaurentSeriesRing(ZZ) sage: qexp_eta(L, prec=30) Traceback (most recent call last): ... TypeError: _element_constructor_() got an unexpected keyword argument 'prec'

This ticket adds the keyword to Laurent series, as well.

### Change History (4)

### comment:1 Changed 3 years ago by

Branch: | → u/soehms/prec_laurent_elem_constr_28993 |
---|

### comment:2 Changed 3 years ago by

Authors: | → Sebastian Oehms |
---|---|

Commit: | → 87cd023005a814a14e5fb1785bdd5cc6c267dfda |

Status: | new → needs_review |

### comment:3 Changed 3 years ago by

Reviewers: | → Travis Scrimshaw |
---|---|

Status: | needs_review → positive_review |

All of the logic for handling the precision is done in the `add_bigoh`

, so this is a good solution IMO.

### comment:4 Changed 3 years ago by

Branch: | u/soehms/prec_laurent_elem_constr_28993 → 87cd023005a814a14e5fb1785bdd5cc6c267dfda |
---|---|

Resolution: | → fixed |

Status: | positive_review → closed |

**Note:**See TracTickets for help on using tickets.

I realize the application of that keyword appending a call of the

`add_bigoh`

method in order to share the same code for the same functionality.New commits:

`28993: initial version`