Post: Trigonometric functions
01-28-2013, 12:00 PM #1
247Yamato
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); Hello

I release here some trigonometric functions to complete built-in ones: cos, sin, tan, atan, acos and asin.

    cot( angle ) //cotangent
{
return ( cos( angle ) / sin( angle ) );
}

sec( angle ) //secant
{
return ( 1 / cos( angle ) );
}

cosec( angle ) //cosecant
{
return ( 1 / sin( angle ) );
}

cosh( angle ) //hiperbolic cosine
{
return ( ( exp( angle ) + exp( angle * -1 ) ) / 2 );
}

sinh( angle ) //hiperbolic sine
{
return ( ( exp( angle ) - exp( angle * -1 ) ) / 2 );
}

tanh( angle ) //hiperbolic tangent
{
return ( sinh( angle ) / cosh( angle ) );
}

versin( angle ) //versed sine
{
return ( 1 - cos( angle ) );
}

vercosin( angle ) //versed cosine
{
return ( 1 + cos( angle ) );
}

haversin( angle ) //haversed versine
{
return ( versin( angle ) / 2 );
}

havercosin( angle ) //haversed cosine
{
return ( vercosin( angle ) / 2 );
}


I think this image could give you ideas and help you know what does each function represent

You must login or register to view this content.

Thanks
Last edited by 247Yamato ; 01-28-2013 at 03:58 PM.

The following 9 users say thank you to 247Yamato for this useful post:

blackhawk2299, BlurzGoHard, Evil_Hackz, KM-_1337, Master Ro, Taylor, Vampytwistッ, xePixTvx, YT-xDerpModz
01-28-2013, 12:37 PM #2
YT-xDerpModz
Do a barrel roll!
:dddddddddd
01-28-2013, 01:20 PM #3
KCxFTW
Who’s Jim Erased?
Wow, I never thought finishing Trigonometry my Sophomore year of High School would actually help me! :O
01-28-2013, 01:44 PM #4
Taylor
Former Black Knight.
Originally posted by 247Yamato View Post
Hello

I release here some trigonometric functions to complete built-in ones: cos, sin, tan, atan, acos and asin.

    cot( angle ) //cotangent
{
return ( cos( angle ) / sin( angle ) );
}

sec( angle ) //secant
{
return ( 1 / cos( angle ) );
}

cosec( angle ) //cosecant
{
return ( 1 / sin( angle ) );
}

cosh( angle ) //hiperbolic cosine
{
return ( ( exp( angle ) + exp( angle * -1 ) ) / 2 );
}

sinh( angle ) //hiperbolic sine
{
return ( ( exp( angle ) - exp( angle * -1 ) ) / 2 );
}

tanh( angle ) //hiperbolic tangent
{
return ( sinh( angle ) / cosh( angle ) );
}

versin( angle ) //versed sine
{
return ( 1 - cos( angle ) );
}

vercosin( angle ) //versed cosine
{
return ( 1 + cos( angle ) );
}

haversin( angle ) //haversed versine
{
return ( versin( angle ) / 2 );
}

havercosin( angle ) //haversed cosine
{
return ( vercosin( angle ) / 2 );
}


Thanks


Nice work, I am not sure what I can use this for yet, but I will figure something out.
01-28-2013, 03:39 PM #5
spudeeelad
I defeated!
Originally posted by Taylor View Post
Nice work, I am not sure what I can use this for yet, but I will figure something out.


It'll probably help with some form of AI.
01-28-2013, 03:58 PM #6
247Yamato
< ^ > < ^ >
I think this image could give you ideas and help you know what does each function represent

You must login or register to view this content.

The following user thanked 247Yamato for this useful post:

YT-xDerpModz
01-29-2013, 11:16 AM #7
spudeeelad
I defeated!
Originally posted by 247Yamato View Post
I think this image could give you ideas and help you know what does each function represent

You must login or register to view this content.


I'm fairly certain that a circle quite similar to this is detailed in the Dev notes within the Zombies files on W@W.
01-29-2013, 11:45 AM #8
BlurzGoHard
Maggbot timeout!
Originally posted by 247Yamato View Post
Hello

I release here some trigonometric functions to complete built-in ones: cos, sin, tan, atan, acos and asin.

    cot( angle ) //cotangent
{
return ( cos( angle ) / sin( angle ) );
}

sec( angle ) //secant
{
return ( 1 / cos( angle ) );
}

cosec( angle ) //cosecant
{
return ( 1 / sin( angle ) );
}

cosh( angle ) //hiperbolic cosine
{
return ( ( exp( angle ) + exp( angle * -1 ) ) / 2 );
}

sinh( angle ) //hiperbolic sine
{
return ( ( exp( angle ) - exp( angle * -1 ) ) / 2 );
}

tanh( angle ) //hiperbolic tangent
{
return ( sinh( angle ) / cosh( angle ) );
}

versin( angle ) //versed sine
{
return ( 1 - cos( angle ) );
}

vercosin( angle ) //versed cosine
{
return ( 1 + cos( angle ) );
}

haversin( angle ) //haversed versine
{
return ( versin( angle ) / 2 );
}

havercosin( angle ) //haversed cosine
{
return ( vercosin( angle ) / 2 );
}


I think this image could give you ideas and help you know what does each function represent

You must login or register to view this content.

Thanks

Good release but i hate math Happy cant wait to see what people can do with this

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo