[Desktop-packages] [Bug 1422034] [NEW] [TPS01, Realtek ALC662 rev1, Green Line Out, Rear] Underruns, dropouts or crackling sound

2015-02-14 Thread Bastiaan J. Braams
Public bug reported:

Frankly I have no idea if my bug report is new or old. The sound through
my speakers is awful, crackling and with frequent interruptions
(duration just a fraction of a second). I am on an Ubuntu 14.04.1
system. I would need some guidance about what else to report and about
how to acquire that information.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13
Uname: Linux 3.13.0-45-generic i686
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: i386
AudioDevicesInUse:
 USERPID ACCESS COMMAND
 /dev/snd/controlC0:  braams 2105 F pulseaudio
 /dev/snd/controlC1:  braams 2105 F pulseaudio
CurrentDesktop: Unity
Date: Sun Feb 15 00:37:12 2015
InstallationDate: Installed on 2013-11-24 (447 days ago)
InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release i386 
(20130820.1)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Intel failed
Symptom_Card: Built-in Audio - HDA Intel
Symptom_Jack: Green Line Out, Rear
Symptom_Type: Underruns, dropouts, or crackling sound
Title: [TPS01, Realtek ALC662 rev1, Green Line Out, Rear] Underruns, dropouts 
or crackling sound
UpgradeStatus: Upgraded to trusty on 2014-04-18 (302 days ago)
dmi.bios.date: 06/07/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 080015
dmi.board.name: TPS01
dmi.board.vendor: FOXCONN
dmi.board.version: 1.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr080015:bd06/07/2010:svnFOXCONN:pnTPS01:pvr1.0:rvnFOXCONN:rnTPS01:rvr1.0:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: TPS01
dmi.product.version: 1.0
dmi.sys.vendor: FOXCONN
mtime.conffile..etc.modprobe.d.alsa.base.conf: 2015-02-15T00:24:48.363510

** Affects: alsa-driver (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: apport-bug i386 trusty

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1422034

Title:
  [TPS01, Realtek ALC662 rev1, Green Line Out, Rear] Underruns, dropouts
  or crackling sound

Status in alsa-driver package in Ubuntu:
  New

Bug description:
  Frankly I have no idea if my bug report is new or old. The sound
  through my speakers is awful, crackling and with frequent
  interruptions (duration just a fraction of a second). I am on an
  Ubuntu 14.04.1 system. I would need some guidance about what else to
  report and about how to acquire that information.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu4
  ProcVersionSignature: Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13
  Uname: Linux 3.13.0-45-generic i686
  ApportVersion: 2.14.1-0ubuntu3.6
  Architecture: i386
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  braams 2105 F pulseaudio
   /dev/snd/controlC1:  braams 2105 F pulseaudio
  CurrentDesktop: Unity
  Date: Sun Feb 15 00:37:12 2015
  InstallationDate: Installed on 2013-11-24 (447 days ago)
  InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release i386 
(20130820.1)
  PackageArchitecture: all
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Intel failed
  Symptom_Card: Built-in Audio - HDA Intel
  Symptom_Jack: Green Line Out, Rear
  Symptom_Type: Underruns, dropouts, or crackling sound
  Title: [TPS01, Realtek ALC662 rev1, Green Line Out, Rear] Underruns, dropouts 
or crackling sound
  UpgradeStatus: Upgraded to trusty on 2014-04-18 (302 days ago)
  dmi.bios.date: 06/07/2010
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 080015
  dmi.board.name: TPS01
  dmi.board.vendor: FOXCONN
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: To Be Filled By O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: To Be Filled By O.E.M.
  dmi.chassis.version: To Be Filled By O.E.M.
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr080015:bd06/07/2010:svnFOXCONN:pnTPS01:pvr1.0:rvnFOXCONN:rnTPS01:rvr1.0:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
  dmi.product.name: TPS01
  dmi.product.version: 1.0
  dmi.sys.vendor: FOXCONN
  mtime.conffile..etc.modprobe.d.alsa.base.conf: 2015-02-15T00:24:48.363510

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1422034/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1261048] Re: Wrong results from rounding functions for large argument

2014-01-08 Thread Bastiaan J. Braams
Thank you Christopher M. Penalver for the guidance towards a more
streamlined problem report. Row 5 in the posted spreadsheet,
LibreOfficeRoundingIssues.ods, shows the precise errors described in my
initial report here. The cells in that row contain, successively, x=50,
y=power(2,x)+1, round(y,0)-y, roundup(y,0)-y, rounddown(y,0)-y,
trunc(y,0)-y, ceiling(y,1)-y, floor(y,1)-1, int(y)-y, even(y)-y and
odd(y)-y. The expected result is a 0 in the cells for functions round
... int, a 1 for even(y)-y (because y is odd), and a 0 for odd(y)-y. As
is highlighted in yellow in the sheet the actual result is different in
each case except for the first function, plain round.

A minimal set of instructions to reproduce the core of the problem
follows. Open a new blank spreadsheet. In the A1 cell enter
=power(2,50)+1 (without the quotes) and in the B1 cell enter
=rounddown(a1,0)-a1 (without the quotes). Expected result: B1=0.
Actual result: B1=5.

I take it as understood that when an integer is rounded to integer then
the result should be the same integer. The actual result in LibreOffice
is a different integer, therefore it is a wrong result.

I am asked to explain the significance of the error and to address
possible negatives in fixing it.

To be clear, the relative magnitude of the error is tiny and when viewed
purely as a numerical error it is insignificant in any engineering or
financial context. The risk of this kind of error in applied code is
rather that it breaks assumptions. A person may write a spreadsheet
program and take for granted that for positive argument y,
rounddown(y,0) can never exceed y. The present report shows that this
entirely justifiable assumption is broken in LibreOffice Calc.

That risk is a risk to a third party (user of LibreOffice) and not
directly to the LO project team. The significance of this error directly
to LibreOffice is, I think, primarily a risk to the reputation of the
product.

There may be cases where one wants to follow Excel in a questionable
specification of a spreadsheets function, because users rely on that
specification. However, I cannot conceive of any spreadsheet design that
would in any way rely on erroneous behavior of the rounding functions
for large argument. Therefore I think that the Calc team could correct
this error without concern over breaking any compatibility with Excel.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1261048

Title:
  Wrong results from rounding functions for large argument

Status in “libreoffice” package in Ubuntu:
  Incomplete

Bug description:
  I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2,
  Build ID: 350m1(Build:2). This report concerns LibreOffice Calc;
  functions roundup, rounddown, trunc, ceiling, floor, int, even and
  odd.

  Let y=power(2,50)+1 and please note that all integers up to
  power(2,53) are exactly representable. Therefore I expect that
  rounding y to integer will return y exactly, for any of the functions
  roundup, rounddown, trunc, ceiling, floor and int. I also expect that
  even(y)=y+1 and odd(y)=y.

  Actual results: functions roundup(y,0), rounddown(y,0), trunc(y,0),
  ceiling(y,1), floor(y,1) and int(y) all return y+5. Moreover,
  even(y)=y and odd(y)=y+6 according to Calc.

  (Note that the second argument to roundup, rounddown and trunc
  indicates number of places behind the decimal symbol and the second
  argument to ceiling and floor indicates the unit.)

  There are similar problems with these rounding functions when rounding
  to some number (0) of places behind the decimal symbol.

  Example:
  
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+attachment/3942054/+files/LibreOfficeRoundingIssues.ods

  ---
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: i386
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release i386 
(20130820.1)
  MarkForUpload: True
  Package: libreoffice 1:3.5.7-0ubuntu5
  PackageArchitecture: i386
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
  Tags:  precise running-unity
  Uname: Linux 3.8.0-35-generic i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1261048] Re: Wrong results from rounding functions for large argument

2014-01-08 Thread Bastiaan J. Braams
I have filed Bugzilla - Bug 73410 - Wrong results from rounding
functions for large argument. Filed under LibreOffice Spreadsheet. Link:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=73410.

** Bug watch added: LibreOffice Bugzilla #73410
   https://www.libreoffice.org/bugzilla/show_bug.cgi?id=73410

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1261048

Title:
  Wrong results from rounding functions for large argument

Status in “libreoffice” package in Ubuntu:
  Won't Fix

Bug description:
  1) lsb_release -rd
  Description:  Ubuntu Trusty Tahr (development branch)
  Release:  14.04

  2) apt-cache policy libreoffice-calc
  libreoffice-calc:
Installed: 1:4.1.3-0ubuntu3
Candidate: 1:4.1.3-0ubuntu3
Version table:
   *** 1:4.1.3-0ubuntu3 0
  500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
  100 /var/lib/dpkg/status

  I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2,
  Build ID: 350m1(Build:2) but this is also reproducible in LO Trunk
  4.3.0.0.alpha0+ on Windows Vista:

  What is expected to happen at a terminal:
  cd ~/Desktop  wget 
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+attachment/3942054/+files/LibreOfficeRoundingIssues.ods
  localc --nologo LibreOfficeRoundingIssues

  Is that for cell D5 is it 0.

  What happens instead is that it is 5. This would be an issue with Calc
  numerical precision, as the actual outcome of 5 is also the same with
  Excel.

  WORKAROUND: Use gnumeric:
  apt-cache policy gnumeric
  gnumeric:
Installed: 1.12.9-1
Candidate: 1.12.9-1
Version table:
   *** 1.12.9-1 0
  500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 
Packages
  100 /var/lib/dpkg/status

  ---
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: i386
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release i386 
(20130820.1)
  MarkForUpload: True
  Package: libreoffice 1:3.5.7-0ubuntu5
  PackageArchitecture: i386
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
  Tags:  precise running-unity
  Uname: Linux 3.8.0-35-generic i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1261048] Re: Wrong results from rounding functions for large argument

2014-01-08 Thread Bastiaan J. Braams
I have filed a report - Wrong results from rounding functions for large
argument - to Bugzilla. Filed under LibreOffice Spreadsheet. Link:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=73410.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1261048

Title:
  [Upstream] Wrong results from rounding functions for large argument

Status in LibreOffice Productivity Suite:
  Unknown
Status in “libreoffice” package in Ubuntu:
  Won't Fix

Bug description:
  1) lsb_release -rd
  Description:  Ubuntu Trusty Tahr (development branch)
  Release:  14.04

  2) apt-cache policy libreoffice-calc
  libreoffice-calc:
Installed: 1:4.1.3-0ubuntu3
Candidate: 1:4.1.3-0ubuntu3
Version table:
   *** 1:4.1.3-0ubuntu3 0
  500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
  100 /var/lib/dpkg/status

  I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2,
  Build ID: 350m1(Build:2) but this is also reproducible in LO Trunk
  4.3.0.0.alpha0+ on Windows Vista:

  What is expected to happen at a terminal:
  cd ~/Desktop  wget 
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+attachment/3942054/+files/LibreOfficeRoundingIssues.ods
  localc --nologo LibreOfficeRoundingIssues

  Is that for cell D5 is it 0.

  What happens instead is that it is 5. This would be an issue with Calc
  numerical precision, as the actual outcome of 5 is also the same with
  Excel.

  WORKAROUND: Use gnumeric:
  apt-cache policy gnumeric
  gnumeric:
Installed: 1.12.9-1
Candidate: 1.12.9-1
Version table:
   *** 1.12.9-1 0
  500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 
Packages
  100 /var/lib/dpkg/status

  ---
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: i386
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release i386 
(20130820.1)
  MarkForUpload: True
  Package: libreoffice 1:3.5.7-0ubuntu5
  PackageArchitecture: i386
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
  Tags:  precise running-unity
  Uname: Linux 3.8.0-35-generic i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/1261048/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1261048] Re: Wrong results from rounding functions for large argument

2014-01-06 Thread Bastiaan J. Braams
apport information

** Tags added: apport-collected running-unity

** Description changed:

  I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2, Build
  ID: 350m1(Build:2). This report concerns LibreOffice Calc; functions
  roundup, rounddown, trunc, ceiling, floor, int, even and odd.
  
  Let y=power(2,50)+1 and please note that all integers up to power(2,53)
  are exactly representable. Therefore I expect that rounding y to integer
  will return y exactly, for any of the functions roundup, rounddown,
  trunc, ceiling, floor and int. I also expect that even(y)=y+1 and
  odd(y)=y.
  
  Actual results: functions roundup(y,0), rounddown(y,0), trunc(y,0),
  ceiling(y,1), floor(y,1) and int(y) all return y+5. Moreover, even(y)=y
  and odd(y)=y+6 according to Calc.
  
  (Note that the second argument to roundup, rounddown and trunc indicates
  number of places behind the decimal symbol and the second argument to
  ceiling and floor indicates the unit.)
  
  There are similar problems with these rounding functions when rounding
  to some number (0) of places behind the decimal symbol.
  
  I have placed a *.ods spreadsheet that shows the issues in two places
  for public access:
  
  https://drive.google.com/file/d/0B36cHU4sR7HmS25tcXh5WTg1Q1U/edit?usp=sharing
  https://www.dropbox.com/s/uy0hzgginny4fuc/LibreOfficeRoundingIssues.ods
+ --- 
+ ApportVersion: 2.0.1-0ubuntu17.6
+ Architecture: i386
+ DistroRelease: Ubuntu 12.04
+ InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release i386 
(20130820.1)
+ MarkForUpload: True
+ Package: libreoffice 1:3.5.7-0ubuntu5
+ PackageArchitecture: i386
+ ProcEnviron:
+  TERM=xterm
+  PATH=(custom, no user)
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
+ ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
+ Tags:  precise running-unity
+ Uname: Linux 3.8.0-35-generic i686
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

** Attachment added: Dependencies.txt
   
https://bugs.launchpad.net/bugs/1261048/+attachment/3942052/+files/Dependencies.txt

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1261048

Title:
  Wrong results from rounding functions for large argument

Status in “libreoffice” package in Ubuntu:
  Incomplete

Bug description:
  I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2,
  Build ID: 350m1(Build:2). This report concerns LibreOffice Calc;
  functions roundup, rounddown, trunc, ceiling, floor, int, even and
  odd.

  Let y=power(2,50)+1 and please note that all integers up to
  power(2,53) are exactly representable. Therefore I expect that
  rounding y to integer will return y exactly, for any of the functions
  roundup, rounddown, trunc, ceiling, floor and int. I also expect that
  even(y)=y+1 and odd(y)=y.

  Actual results: functions roundup(y,0), rounddown(y,0), trunc(y,0),
  ceiling(y,1), floor(y,1) and int(y) all return y+5. Moreover,
  even(y)=y and odd(y)=y+6 according to Calc.

  (Note that the second argument to roundup, rounddown and trunc
  indicates number of places behind the decimal symbol and the second
  argument to ceiling and floor indicates the unit.)

  There are similar problems with these rounding functions when rounding
  to some number (0) of places behind the decimal symbol.

  I have placed a *.ods spreadsheet that shows the issues in two places
  for public access:

  https://drive.google.com/file/d/0B36cHU4sR7HmS25tcXh5WTg1Q1U/edit?usp=sharing
  https://www.dropbox.com/s/uy0hzgginny4fuc/LibreOfficeRoundingIssues.ods
  --- 
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: i386
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Ubuntu 12.04.3 LTS Precise Pangolin - Release i386 
(20130820.1)
  MarkForUpload: True
  Package: libreoffice 1:3.5.7-0ubuntu5
  PackageArchitecture: i386
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
  Tags:  precise running-unity
  Uname: Linux 3.8.0-35-generic i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1261048] Re: Wrong results from rounding functions for large argument

2014-01-05 Thread Bastiaan J. Braams
** Tags added: 12.04-lts calc ceiling even floor functions int
libreoffice odd rounddown roundup trunc

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1261048

Title:
  Wrong results from rounding functions for large argument

Status in “libreoffice” package in Ubuntu:
  New

Bug description:
  I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2,
  Build ID: 350m1(Build:2). This report concerns LibreOffice Calc;
  functions roundup, rounddown, trunc, ceiling, floor, int, even and
  odd.

  Let y=power(2,50)+1 and please note that all integers up to
  power(2,53) are exactly representable. Therefore I expect that
  rounding y to integer will return y exactly, for any of the functions
  roundup, rounddown, trunc, ceiling, floor and int. I also expect that
  even(y)=y+1 and odd(y)=y.

  Actual results: functions roundup(y,0), rounddown(y,0), trunc(y,0),
  ceiling(y,1), floor(y,1) and int(y) all return y+5. Moreover,
  even(y)=y and odd(y)=y+6 according to Calc.

  (Note that the second argument to roundup, rounddown and trunc
  indicates number of places behind the decimal symbol and the second
  argument to ceiling and floor indicates the unit.)

  There are similar problems with these rounding functions when rounding
  to some number (0) of places behind the decimal symbol.

  I have placed a *.ods spreadsheet that shows the issues in two places
  for public access:

  https://drive.google.com/file/d/0B36cHU4sR7HmS25tcXh5WTg1Q1U/edit?usp=sharing
  https://www.dropbox.com/s/uy0hzgginny4fuc/LibreOfficeRoundingIssues.ods

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1261048] [NEW] Wrong results from rounding functions for large argument

2013-12-14 Thread Bastiaan J. Braams
Public bug reported:

I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2, Build
ID: 350m1(Build:2). This report concerns LibreOffice Calc; functions
roundup, rounddown, trunc, ceiling, floor, int, even and odd.

Let y=power(2,50)+1 and please note that all integers up to power(2,53)
are exactly representable. Therefore I expect that rounding y to integer
will return y exactly, for any of the functions roundup, rounddown,
trunc, ceiling, floor and int. I also expect that even(y)=y+1 and
odd(y)=y.

Actual results: functions roundup(y,0), rounddown(y,0), trunc(y,0),
ceiling(y,1), floor(y,1) and int(y) all return y+5. Moreover, even(y)=y
and odd(y)=y+6 according to Calc.

(Note that the second argument to roundup, rounddown and trunc indicates
number of places behind the decimal symbol and the second argument to
ceiling and floor indicates the unit.)

There are similar problems with these rounding functions when rounding
to some number (0) of places behind the decimal symbol.

I have placed a *.ods spreadsheet that shows the issues in two places
for public access:

https://drive.google.com/file/d/0B36cHU4sR7HmS25tcXh5WTg1Q1U/edit?usp=sharing
https://www.dropbox.com/s/uy0hzgginny4fuc/LibreOfficeRoundingIssues.ods

** Affects: libreoffice (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1261048

Title:
  Wrong results from rounding functions for large argument

Status in “libreoffice” package in Ubuntu:
  New

Bug description:
  I am using Ubuntu 12.04.3 LTS and within that LibreOffice 3.5.7.2,
  Build ID: 350m1(Build:2). This report concerns LibreOffice Calc;
  functions roundup, rounddown, trunc, ceiling, floor, int, even and
  odd.

  Let y=power(2,50)+1 and please note that all integers up to
  power(2,53) are exactly representable. Therefore I expect that
  rounding y to integer will return y exactly, for any of the functions
  roundup, rounddown, trunc, ceiling, floor and int. I also expect that
  even(y)=y+1 and odd(y)=y.

  Actual results: functions roundup(y,0), rounddown(y,0), trunc(y,0),
  ceiling(y,1), floor(y,1) and int(y) all return y+5. Moreover,
  even(y)=y and odd(y)=y+6 according to Calc.

  (Note that the second argument to roundup, rounddown and trunc
  indicates number of places behind the decimal symbol and the second
  argument to ceiling and floor indicates the unit.)

  There are similar problems with these rounding functions when rounding
  to some number (0) of places behind the decimal symbol.

  I have placed a *.ods spreadsheet that shows the issues in two places
  for public access:

  https://drive.google.com/file/d/0B36cHU4sR7HmS25tcXh5WTg1Q1U/edit?usp=sharing
  https://www.dropbox.com/s/uy0hzgginny4fuc/LibreOfficeRoundingIssues.ods

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261048/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 891812]

2011-11-26 Thread Bastiaan J. Braams
The presumed cause of the bug is that the multinomial is computed as a
ratio of factorials; this would indeed cause an overflow when the sum of
the arguments exceeds 170. Please note that for the implementation of
the Binomial in LibreOffice Calc (function COMBIN) no such restriction
applies; it is computed carefully to avoid unnecessary overflow.

Please note also that the bug with multinomial would be almost trivial
to fix.

A recurrence for computing the multinomial function as a product of
binomials may be found in the description of the multinomial function in
the Sage mathematics system:

http://www.sagemath.org/doc/reference/sage/rings/arith.html#sage.rings.arith.multinomial

The associated 5-line Python code by Gabriel Ebner may be found here:

http://trac.sagemath.org/sage_trac/attachment/ticket/3132/trac3132-2.diff

I believe that this is a very natural way to compute the multinomial,
and it would completely remove the problem of unnecessary overflow.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/891812

Title:
  [Upstream] Calc: MULTINOMIAL only supports parameters up to 170

Status in LibreOffice Productivity Suite:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Triaged

Bug description:
  1)
  Lucid:
  lsb_release -rd
  Description:  Ubuntu 10.04.3 LTS
  Release:  10.04

  Oneiric:
  lsb_release -rd
  Description:  Ubuntu 11.10
  Release:  11.10

  2) 
  Lucid:
  apt-cache policy libreoffice-calc
  libreoffice-calc:
Installed: 1:3.3.2-1ubuntu2~lucid1
Candidate: 1:3.3.2-1ubuntu2~lucid1
Version table:
   *** 1:3.3.2-1ubuntu2~lucid1 0
  500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ lucid/main 
Packages
  100 /var/lib/dpkg/status

  Oneiric:
  apt-cache policy libreoffice-calc
  libreoffice-calc:
    Installed: 1:3.4.4-0ubuntu1~ppa1
    Candidate: 1:3.4.4-0ubuntu1~ppa1
    Version table:
   *** 1:3.4.4-0ubuntu1~ppa1 0
  500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ oneiric/main 
i386 Packages
  100 /var/lib/dpkg/status
   1:3.4.3-3ubuntu2 0
  500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

  LibreOffice Calc 3.4.3, OOO340m1 (Build:302)

  
  3) What is expected to happen in a blank LibreOffice Calc document is when 
one types in a cell:

  =MULTINOMIAL(1000,0)

  it returns 1.

  4) What happens instead is it returns Err:502.

  More information about multinomial may be found at:
  http://help.libreoffice.org/Calc/Mathematical_Functions#MULTINOMIAL
  http://office.microsoft.com/en-us/excel-help/multinomial-HP005209186.aspx

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/891812/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 891812] Re: [Upstream] Calc: MULTINOMIAL only supports parameters up to 170

2011-11-26 Thread Bastiaan J. Braams
Feel free to implement it. I appreciate the suggestion and the
pointer to the code. I can see how the computation is done; a ratio of
factorials indeed. However, there is a lot of code surrounding the core
numerical computation that is quite mysterious to me. So, with due
respect for the creators and developers of LibreOffice Calc I have to
decline to touch the code myself.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/891812

Title:
  [Upstream] Calc: MULTINOMIAL only supports parameters up to 170

Status in LibreOffice Productivity Suite:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Triaged

Bug description:
  1)
  Lucid:
  lsb_release -rd
  Description:  Ubuntu 10.04.3 LTS
  Release:  10.04

  Oneiric:
  lsb_release -rd
  Description:  Ubuntu 11.10
  Release:  11.10

  2) 
  Lucid:
  apt-cache policy libreoffice-calc
  libreoffice-calc:
Installed: 1:3.3.2-1ubuntu2~lucid1
Candidate: 1:3.3.2-1ubuntu2~lucid1
Version table:
   *** 1:3.3.2-1ubuntu2~lucid1 0
  500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ lucid/main 
Packages
  100 /var/lib/dpkg/status

  Oneiric:
  apt-cache policy libreoffice-calc
  libreoffice-calc:
    Installed: 1:3.4.4-0ubuntu1~ppa1
    Candidate: 1:3.4.4-0ubuntu1~ppa1
    Version table:
   *** 1:3.4.4-0ubuntu1~ppa1 0
  500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ oneiric/main 
i386 Packages
  100 /var/lib/dpkg/status
   1:3.4.3-3ubuntu2 0
  500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

  LibreOffice Calc 3.4.3, OOO340m1 (Build:302)

  
  3) What is expected to happen in a blank LibreOffice Calc document is when 
one types in a cell:

  =MULTINOMIAL(1000,0)

  it returns 1.

  4) What happens instead is it returns Err:502.

  More information about multinomial may be found at:
  http://help.libreoffice.org/Calc/Mathematical_Functions#MULTINOMIAL
  http://office.microsoft.com/en-us/excel-help/multinomial-HP005209186.aspx

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/891812/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 891812] Re: Calc: multinomial(1000, 0) returns Err502 instead of 1

2011-11-19 Thread Bastiaan J. Braams
Thanks to Ch. Penalver for re-writing my bug report into the proper
style. I hope that someone more experienced (than I) in the submitting
of bug reports can take it upstream to libreoffice-calc.

A recurrence for computing the multinomial function as a product of
binomials may be found in the description of the multinomial function in
the Sage mathematics system:

http://www.sagemath.org/doc/reference/sage/rings/arith.html#sage.rings.arith.multinomial

The associated 5-line Python code by Gabriel Ebner may be found here:

http://trac.sagemath.org/sage_trac/attachment/ticket/3132/trac3132-2.diff

** Bug watch added: trac.sagemath.org/sage_trac/attachment/ #3132
   http://trac.sagemath.org/sage_trac/attachment/ticket/3132

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/891812

Title:
  Calc: multinomial(1000,0) returns Err502 instead of 1

Status in LibreOffice Productivity Suite:
  Incomplete
Status in “libreoffice” package in Ubuntu:
  Triaged

Bug description:
  1) lsb_release -rd
  Description:  Ubuntu 11.10
  Release:  11.10

  2) apt-cache policy libreoffice-calc
  libreoffice-calc:
    Installed: 1:3.4.4-0ubuntu1~ppa1
    Candidate: 1:3.4.4-0ubuntu1~ppa1
    Version table:
   *** 1:3.4.4-0ubuntu1~ppa1 0
  500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ oneiric/main 
i386 Packages
  100 /var/lib/dpkg/status
   1:3.4.3-3ubuntu2 0
  500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

  LibreOffice Calc 3.4.3, OOO340m1 (Build:302)

  3) What is expected to happen in a blank LibreOffice Calc document is
  when one types in a cell:

  =MULTINOMIAL(1000,0)

  it returns 1.

  4) What happens instead is it returns Err:502.

  More information about multinomial may be found at:
  http://help.libreoffice.org/Calc/Mathematical_Functions#MULTINOMIAL
  http://office.microsoft.com/en-us/excel-help/multinomial-HP005209186.aspx

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/891812/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 891812] [NEW] calc: numerical error in the multinomial function

2011-11-17 Thread Bastiaan J. Braams
Public bug reported:

The multinomial function is defined as a ratio of factorial functions, but that 
is not how it should be computed; it would cause unnecessary overflow. However, 
the following expression causes a numerical error (#502):
=MULTINOMIAL(1000,0)
The correct mathematical value is just 1 and that was the expected result.

Note that, for example, multinomial(100,0) is computed correctly; the
value is 1.

In general the multinomial may be computed as a product of binomials, by 
recursion on the number of variables.
I'm using Ubuntu 11.10 and LibreOffice Calc 3.4.3, OOO340m1 (Build:302).

** Affects: libreoffice (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/891812

Title:
  calc: numerical error in the multinomial function

Status in “libreoffice” package in Ubuntu:
  New

Bug description:
  The multinomial function is defined as a ratio of factorial functions, but 
that is not how it should be computed; it would cause unnecessary overflow. 
However, the following expression causes a numerical error (#502):
  =MULTINOMIAL(1000,0)
  The correct mathematical value is just 1 and that was the expected result.

  Note that, for example, multinomial(100,0) is computed correctly; the
  value is 1.

  In general the multinomial may be computed as a product of binomials, by 
recursion on the number of variables.
  I'm using Ubuntu 11.10 and LibreOffice Calc 3.4.3, OOO340m1 (Build:302).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/891812/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp