Menu

suggestion to divide functions to groups

2017-04-04
2017-04-04
  • Dmitry Oleynikov

    I guess special trigonomery functions like arcsin, arccos, arctg are not very important and it would be great to have en option in config to turn them off to save some memory on Arduino nano (for example).

     
  • Andrey Skvortsov

    These functions belong to Math module and can be disabled in configuration (USE_MATH macro).

     
  • Dmitry Oleynikov

    well, it's possible to save couple bytes if just comment them from project. For example: I need sin and cos functions, but never use arcsin and arccos. It's much better to have more space and use less variables to keep BASIC working on weak MC. But, if you, as project leader, deside not to make any changes - you have good reason for it. Anyway, sorry for disturbing/ ;-)

     
  • Andrey Skvortsov

    I agree, that some functions (sin, cos, sqr .. ) are used times more often then others.
    I can add a section in config_..hpp files, to control the contents of math module.

     
  • Andrey Skvortsov

    Inverse trigonometric functions are condition compilable since 0.8.

     

    Last edit: Andrey Skvortsov 2017-05-19

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.