Skip to content

Conversation

@titoausten
Copy link

@titoausten titoausten commented Jul 12, 2023

  • sec() is a trigonometry function that returns the reciprocal (not inverse) of cos() i.e sec() = 1 / cos().

  • Added new regression tests for sec().

@jrgemignani
Copy link
Contributor

@titoausten Can you justify needing this?

@titoausten
Copy link
Author

titoausten commented Jul 18, 2023

@jrgemignani I believe it's better to have a stand alone function than finding reciprocal of the age_cos function. AGE can be used for mathematical graph queries too and having such functions would make AGE's use easy.

@jrgemignani
Copy link
Contributor

@titoausten Does Neo4j or PostgreSQL support what you want to add?

@titoausten
Copy link
Author

@titoausten Does Neo4j or PostgreSQL support what you want to add?

Yes, the sec() function is dependent on PostgreSQL's dcos() function in float.c file.

@jrgemignani
Copy link
Contributor

@titoausten Does Neo4j or PostgreSQL support what you want to add?

Yes, the sec() function is dependent on PostgreSQL's dcos() function in float.c file.

Let me rephrase that,... does Neo4j or PostgreSQL have a secant function?

@titoausten
Copy link
Author

@titoausten Does Neo4j or PostgreSQL support what you want to add?

Yes, the sec() function is dependent on PostgreSQL's dcos() function in float.c file.

Let me rephrase that,... does Neo4j or PostgreSQL have a secant function?

Oh, none of them have a secant function and that's why I worked on it.

@dehowef dehowef closed this Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants