taskGNU Astronomy Utilities - Tasks: task #16070, Add mathematical and physical...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #16070: Add mathematical and physical constants in the arithmetic library

Submitter:  Pedram Ashofteh-Ardakani <pedram>
Submitted:  Thu 11 Nov 2021 01:48:00 PM UTC
   
 
Should Start On:  Thu 11 Nov 2021 12:00:00 AM UTC Should be Finished on:  Thu 11 Nov 2021 12:00:00 AM UTC
Category:  Arithmetic Priority:  5 - Normal
Item Group:  Enhancement Status:  None
Privacy:  Public Assigned to:  None
Percent Complete:  0% Open/Closed:  Open
Effort:  0.00

Thu 11 Nov 2021 01:48:00 PM UTC, original submission:  

It would be nice if Arithmetic comprehended mathematical/physical constants such as 'pi' in the user-given operands.

To achieve this, Mohammad suggests: we can define 'pi' as an operator with no operand. This operator will just put the number 3.14.... on top of the stack of operands! In fact, if implemented properly, we can define a whole class of "constant" operators for this purpose, so as more physical/mathematical constants become necessary, we can easily add them.

Please note, mathematical constants like the number 'pi' is already in the 'math.h' header of the C library, as well as the math section of the  Gnuastro dependency: GNU Scientific Library [1]. Also, the most basic physical/astronomical constants are present as macros in the GNU Scientific Library [2].

[1] https://www.gnu.org/software/gsl/doc/html/math.html
[2] https://www.gnu.org/software/gsl/doc/html/const.html

Pedram Ashofteh-Ardakani <pedram>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pedram (Submitted the item)
  • -email is unavailable- added by pedram
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-11 pedram Carbon-Copy- Added makhlaghi

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code