Opened 4 years ago

Closed 4 years ago

#24318 closed defect (fixed)

Conversion failure CBF -> CDF

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-8.2
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Vincent Delecroix Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: 289c86b (Commits, GitHub, GitLab) Commit: 289c86bc2f8ad387938b8d6f4c47814bbb0bc0f9
Dependencies: #24285 Stopgaps:

Status badges

Description (last modified by vdelecroix)

It should be possible to convert complex balls to a complex double

sage: RDF(RBF(1))
sage: CDF(CBF(1))
sage: CDF(CBF(1+I))
Traceback (most recent call last):
TypeError: can't convert complex ball to float

(it works perfectly with ComplexField)

See also the initial report from #24317.

Change History (4)

comment:1 Changed 4 years ago by vdelecroix

  • Authors set to Vincent Delecroix
  • Branch set to u/vdelecroix/24318
  • Commit set to 289c86bc2f8ad387938b8d6f4c47814bbb0bc0f9
  • Dependencies set to #24285
  • Status changed from new to needs_review

New commits:

82dcce224285: cleaning in real_mpfi
d9469bc24285: fix string representation
75bc75224285: simplify real balls
86c440024285: now ball fields do not need C++
9d2298f24285: __reduce__ not needed on RealBallField
27ac94b24285: too many s
3396c3e24285: map go -> map goes
289c86b24318: conversion CBF -> CDF

comment:2 Changed 4 years ago by vdelecroix

  • Description modified (diff)

comment:3 Changed 4 years ago by tscrim

  • Reviewers set to Travis Scrimshaw
  • Status changed from needs_review to positive_review


comment:4 Changed 4 years ago by vbraun

  • Branch changed from u/vdelecroix/24318 to 289c86bc2f8ad387938b8d6f4c47814bbb0bc0f9
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.