[ANN] AJ_MATH 1.2 is available

We are proud to announce our new release AJ_Math 1.2

      • AJ_Math - Math functions for 4D * * *

It is intended for 4D developers. The component AJ_Math covers mathematical and trigonometric functions.

AJ_Math is one of the 4D tool components of our AJ_Suite which includes :

• AJUI_Banner 1.7
• AJUI_Breadcrumb 1.2.1
• AJUI_Tip 1.6.1
• AJUI_Progressbar 1.1
• AJUI_FloatingLabel 1.1.1
• AJUI_Button 1.3.1
• AJ_Tools_Regex
• AJ_Tools_xliff
• AJ_Tools_UnitTest 1.0.1

This Free component is available here :

https://ch-fr.4d.com/aj-suite

What’s new since version 1.0?

The component has been extended with new functions :

  • Math.acos(x)
  • Math.asin(x)
  • Math.atan2(y;x)
  • Math.spherodistance (latitude1;longitude1;latitude2;longitude2)
  • Math.toRadians(degrees)
  • Math.toDegrees(radians)
  • Math.roundDecimal(x;precision;roundType)
    roundType supported :
    • ROUND_UP,
    • ROUND_DOWN,
    • ROUND_CEILING,
    • ROUND_FLOOR,
    • ROUND_HALF_UP,
    • ROUND_HALF_DOWN,
    • ROUND_HALF_CEILING,
    • ROUND_HALF_FLOOR,
    • ROUND_HALF_EVEN.

The wiki on github has been updated accordingly.

There was a trace of a method from the AJ_Tools_UnitTest component in the AJ_Math component that makes an unwanted dependency.

This is fixed and you can now download the 1.2.2 version which doesn’t have any dependencies.

If you want to look at the unit tests, you must launch the "Math-unit-test” project. The “AJ_Math.4dbase” is a component and should not be launched by itself, but should be put in the “Components” folder inside another project.

Thanks to Bernard Escaich and Mike Kerner for the feedback.

I can’t open AJ_Math project…
I have downloaded new version on my drive.

If I click on Math-unit-test.4DProject, it asks me to create a data file, it opens and I can run the test ; OK.
If I click on AJ_Math.4dbase which contains AJ_Math.4DZ, it asks me to create a data file, it opens but all menus are greyed : is it protected ? what should I get ?

You say : “The component and the source code are available under the MIT license.”
I am not familiar with projects…

: Bernard ESCAICH

If I click on AJ_Math.4dbase which contains AJ_Math.4DZ, it asks me
to create a data file, it opens but all menus are greyed : is it
protected ? what should I get ?

The “AJ_Math.4dbase” is a component and should not be launched by itself, but should be put in the “Components” folder inside another project.

We provide AJ_Math component as a compiled component and Math-unit-test.4DProject as a source project.

You need 4D v18 to be able to open a 4D Project.

More about 4D project :

https://developer.4d.com/docs/en/Project/overview.html

Merci Maurice,
Ma curiosité portait sur le fonctionnement des member functions ; elle ne sera pas satisfaite !
Et le Summit aura-t-il lieu…