Bug 117893 - besselj gives error for negative order
Summary: besselj gives error for negative order
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Function
  Show dependency treegraph
 
Reported: 2018-05-30 04:08 UTC by kent deines
Modified: 2023-05-06 18:58 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kent deines 2018-05-30 04:08:41 UTC
=besselj(3.8,2) gives .409. Good
=besselj(3.8,-2) gives err502. Bad. It should give the same answer
=besselj(3.8,3) gives .418. Good
=besselj(3.8,-3) gives err502. Bad. It should give -.418
In general
besselj(x,-even order)=besselj(x,+even order) (behaves like cos(-x)=cos(x))
besselj(x,-odd order)=-besselj(x,+odd order) (behaves like sin(-x)=-sin(x))
Kent
Comment 1 raal 2018-05-30 05:32:02 UTC
 specification
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#__RefHeading__1018486_715980110


6.16.13BESSELJ
Summary: Returns the Bessel function of integer order Jn(x) (cylinder function)
Syntax: BESSELJ( Integer X ; Number N )
Returns: Number
Constraints: N >= 0, INT(N)=N; Evaluators may evaluate expressions where N >= 0 returns a non-error value.
Semantics: Computes the Bessel function of integer order Jn(x). N is also known as the order.


Constraints: N >= 0 => not a bug
Comment 2 Regina Henschel 2018-05-30 08:00:19 UTC
The ODF specification should be changed. I keep it here as a reminder.

It is low importance, because you can make the needed case distinction manually.
Comment 3 Xisco Faulí 2018-08-30 09:51:58 UTC
Hi Regina,
Any progress in the ODF expecification side ?
Comment 4 Regina Henschel 2018-09-02 16:58:48 UTC
No progress.
Comment 5 Xisco Faulí 2018-12-03 13:26:27 UTC
Dear Regina Henschel,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assigned it back to yourself if you're still working on this.
Comment 6 Regina Henschel 2018-12-03 14:15:16 UTC
I have generated https://issues.oasis-open.org/browse/OFFICE-4005

If someone is going to implement this, please have a look at the state of that issue.