summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/bessel.cxx
AgeCommit message (Collapse)AuthorFilesLines
2022-02-15tdf#145759 Using M_PI from cmath instead of magic constants.pragat-pandya1-12/+6
Replace the instances of Pi's value as magic number by M_PI Use M_PI_2 and 2_M_PI instead of calculating these values in code. Use basegfx functions to convert angle units. Change-Id: I6cca7cc93704a70ccf3a0571a56a789bc9df51ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129479 Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com> Reviewed-by: Hossein <hossein@libreoffice.org> Tested-by: Jenkins
2021-10-20loplugin:indentation check for indent inside blockNoel Grandin1-3/+3
look for places where the statements inside a block are not indented Change-Id: I0cbfa7e0b6fb194b2aff6fa7e070fb907d70ca2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123885 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-03Purge out when safe rtl::math ( isValidArcArg / sin / cos )BaiXiaochun1-4/+6
/** If a value is a valid argument for sin(), cos(), tan(). IEEE 754 specifies that absolute values up to 2^64 (=1.844e19) for the radian must be supported by trigonometric functions. Unfortunately, at least on x86 architectures, the FPU doesn't generate an error pattern for values >2^64 but produces erroneous results instead and sets only the "invalid operation" (IM) flag in the status word :-( Thus the application has to handle it itself. */ chart2/source/tools/RelativePositionHelper.cxx Function name: RelativePositionHelper::getCenterOfAnchoredObject From here: suppose it's related to the orientation of the chart << 2^64 chart2/source/view/main/LabelPositionHelper.cxx LabelPositionHelper::LabelPositionHelper Suppose: setup label position. There won't be angles grater than 360º. chart2/source/view/main/PlottingPositionHelper.cxx PolarPlottingPositionHelper::transformUnitCircleToScene Suppose: maybe disc chart orientation? Internal angle should be safe. chart2/source/view/main/ShapeFactory.cxx ShapeFactory::getSizeAfterRotation Suppose: rotate shape Internal angle should be safe. drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx Constant 100% safe sc/source/core/data/documen4.cxx bool ScDocument::Solver Suppose: the tangent is being used as numerical derivative (Regula falsi algorithm) So no impossible angles scaddins/source/analysis/bessel.cxx Filtered it out as bad imput Change-Id: Ib348cca6ce13263d087b6731f93f58d8a15cc725 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118193 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-01-31clang-tidy modernize-concat-nested-namespaceNoel Grandin1-4/+2
Change-Id: Iab35a8b85b3ba1df791c774f40b037f9420a071a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86708 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-05-24tdf#42949 Fix IWYU warnings in scaddins/Gabor Kelemen1-1/+3
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I6b39bd25e243ab0f39847f6feb0b767d7358bf0f Reviewed-on: https://gerrit.libreoffice.org/72635 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2018-09-17New loplugin:externalStephan Bergmann1-4/+4
...warning about (for now only) functions and variables with external linkage that likely don't need it. The problems with moving entities into unnamed namespacs and breaking ADL (as alluded to in comments in compilerplugins/clang/external.cxx) are illustrated by the fact that while struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { struct S2: S1 { int f() { return 1; } }; int f(S2 s) { return s.f(); } } int main() { return f(N::S2()); } returns 1, both moving just the struct S2 into an nunnamed namespace, struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { namespace { struct S2: S1 { int f() { return 1; } }; } int f(S2 s) { return s.f(); } } int main() { return f(N::S2()); } as well as moving just the function f overload into an unnamed namespace, struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { struct S2: S1 { int f() { return 1; } }; namespace { int f(S2 s) { return s.f(); } } } int main() { return f(N::S2()); } would each change the program to return 0 instead. Change-Id: I4d09f7ac5e8f9bcd6e6bde4712608444b642265c Reviewed-on: https://gerrit.libreoffice.org/60539 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-04-01fix some openoffice bugzilla linksdennisroczek1-2/+2
* remove redirects * use https links * replace old attchment links with working ones Change-Id: Ic9a154f46e142138f0adea7d7b8be3b6cfe8af18 Reviewed-on: https://gerrit.libreoffice.org/52224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-30loplugin:unnecessaryparen: signed numeric literalsStephan Bergmann1-2/+2
Change-Id: I75c8224452ca9c3711a2ccaca9ecf549fa59cb64 Reviewed-on: https://gerrit.libreoffice.org/45549 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-09-22loplugin:flatten in scaddins..sdNoel Grandin1-12/+9
Change-Id: I190323ce910224f883c4370b2c752644a5a35edd Reviewed-on: https://gerrit.libreoffice.org/42626 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-26loplugin:oncevar in scaddins..sotNoel Grandin1-1/+1
Change-Id: I657a131374b9f1153135e00ed429889518b91427 Reviewed-on: https://gerrit.libreoffice.org/39258 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-26Remove dynamic exception specificationsStephan Bergmann1-8/+8
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-19New loplugin:dynexcspec: Add @throws documentation, scaddinsStephan Bergmann1-2/+8
Change-Id: I8b78ab7ac34cace1a6aad8807f4964e4414c9ac3
2015-10-13cppcheck:variableScopeNoel Grandin1-10/+5
Change-Id: I7cbd5a9e9bb5417f754d4e2445df309140fd40af Reviewed-on: https://gerrit.libreoffice.org/19329 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-21fdo#39440 reduce scope of local variablesMichael Weghorn1-6/+2
This addresses some cppcheck warnings. Change-Id: I390607e002e93cf7a6babc26d9be084d9f185058
2014-04-06whitespace cleanup in scaddinsMarkus Mohrhard1-10/+0
Change-Id: I05d0ee9db5a243631a8568dfc967328520e0799a
2014-02-26Remove visual noise from scaddinsAlexander Wilms1-9/+9
Change-Id: I533b172ae62b6a2056109c0e6cf854ec89de8391 Reviewed-on: https://gerrit.libreoffice.org/8302 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms1-2/+2
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann1-5/+0
Change-Id: I6b3c667e42c9de6ad6aa61c7d3caf1cb7b343d5f
2013-01-31Some cppcheck cleaningJulien Nabet1-3/+2
Change-Id: I57baea223b0f0a78346d9872665ab85c00c8fc51
2012-06-26re-base on ALv2 code.Michael Meeks1-23/+14
2011-11-28dr78: #i43040# removed german umlauts and utf8 bom accidentially added by ↵Eike Rathke1-4/+4
too smart editor # HG changeset patch # User Daniel Rentz [dr] <daniel.rentz@oracle.com> # Date 1295613905 -3600 # Node ID 65540563b0d1ba68bd3a9d6e3e8111c6c0e1a71d # Parent 7c526a3a4dfa801f59eaeeea99e7b7a032bc6fe4
2011-11-28dr78: #i43040# correction for BesselI, patch from ReginaEike Rathke1-38/+23
# HG changeset patch # User Daniel Rentz [dr] <daniel.rentz@oracle.com> # Date 1295613474 -3600 # Node ID 7c526a3a4dfa801f59eaeeea99e7b7a032bc6fe4 # Parent 77c9f7fb9f061730dc584e18425f6645df14b648
2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth1-0/+2
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-06-07calc55: #i40309# #i31656# #i103458# improved accuracy of Bessel functions; ↵Eike Rathke [er]1-141/+226
patch from <regina>
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien1-4/+1
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2008-04-11INTEGRATION: CWS changefileheader (1.5.80); FILE MERGEDRüdiger Timm1-27/+18
2008/04/01 12:37:08 thb 1.5.80.2: #i85898# Stripping all external header guards 2008/03/31 17:23:11 rt 1.5.80.1: #i87441# Change license header to LPGL v3.
2006-06-19INTEGRATION: CWS warnings01 (1.4.12); FILE MERGEDJens-Heiner Rechtien1-6/+6
2005/11/11 16:07:45 pl 1.4.12.1: #i55991# removed warnings
2005-09-08INTEGRATION: CWS ooo19126 (1.3.88); FILE MERGEDRüdiger Timm1-47/+21
2005/09/05 17:00:07 rt 1.3.88.1: #i54170# Change license header: remove SISSL
2003-12-17INTEGRATION: CWS geordi2q11 (1.2.46); FILE MERGEDVladimir Glazounov1-4/+4
2003/12/16 15:18:31 hr 1.2.46.1: #111934#: join CWS ooo111fix1
2003-06-04INTEGRATION: CWS dr4 (1.1.2); FILE ADDEDVladimir Glazounov1-0/+453
2003/06/02 10:18:19 dr 1.1.2.1: #i9134# fixed BESSEL J and I calculation