Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 453 results for
cosine
- Page 1
Re: Best way to find a segment of code that matches a given input segment?
Programming
Software Development
2 Months Ago
by Dani
… to a particular article. We'll assume the algorithm uses
cosine
similarity or another similarity measure to compare the articles. 1…
Cosine and Sine Simplification
Programming
Software Development
14 Years Ago
by fussballer
… is a way to "approximate" the sine and
cosine
of a value (angle is between 0 and 2pi). Apparently…. Is there a simple way to compute the sine and
cosine
of a value? (I would also like to find out… for a square root, but for now just sine and
cosine
) Thanks for your help! Sam
cosine similarity
Programming
Software Development
14 Years Ago
by celiz45
… provide with java code for performing text similarity calculation using
cosine
similarity. it is a part of my project.. the context… fields of r1 and r2 are totally different. so using
cosine
similarity calculation i require output like that.
Re: Cosine Function
Programming
Software Development
14 Years Ago
by emilo35
…, 0, pi, (2*pi), (3*pi)}[/ICODE] and the known
cosine
values; [ICODE]y = { 0, -1, 0, 1, 0, -1, 0…, but the more points you utilize the more precise your
cosine
curve will be when close to origo. This curve can… angle ([ICODE]A[/ICODE]) that you wish to calculate the
cosine
of, and do a [ICODE]unitCircleA = A mod PI[/ICODE…
cosine series...
Programming
Software Development
15 Years Ago
by anuizath2007
my homework is to make a c program displayin de
cosine
series.....i made up one referrin buks but can it …
Cosine Similarity in images
Programming
Software Development
14 Years Ago
by Dharni.Gurnani
… the similarity between images... I have started of trying the
cosine
similarity.. the formula available online needed to be modified since…
Cosine Function
Programming
Software Development
14 Years Ago
by derek123
… write a C program that calculates the value of a
cosine
function without using any library functions from <math.h…
Cosine and Sine using do-while loop
Programming
Software Development
12 Years Ago
by quiin_aien
How to get the **Sine** and **
Cosine
** of an **inputed** number by the user?
cosine function
Programming
Software Development
8 Years Ago
by Adm666
im intending to do a function that'll calculate the
cosine
of x like this: 1-x^2/2! + x^4/…
Computation of cosine similarity over a list of values using python
Programming
Software Development
11 Years Ago
by Tiger1
…of values. My goal is to compute
cosine
similarity for each value in the f-list… and compute how close in terms of
cosine
distance the rest values in the list …, I keep getting 1.0 as the
cosine
similarity even when I tested the code on…in f: for i in f:
cosine
=cx(c, i) print
cosine
Any ideas?, many thanks in advance.…
Calculating Cosine without Using Math.cos
Programming
Software Development
15 Years Ago
by leoeroy
… a program that will compare the results in calculating the
Cosine
with powerseries method and Math.cos method. This is what… i have. [CODE]import java.util.*; class
Cosine
{ public static void main(String[] args){ int degrees = 0; Scanner…
Matlab cosine user defined function?
Programming
Software Development
13 Years Ago
by Panathinaikos22
…![/CODE] this is my code in MATLAB [code] function y =
cosine
(x,n) sum = x; term = x; for i = 1:2… y = sum; [/code] I try this also [code] function y =
cosine
(x,n) sum = x; term = x; for i = 1:2…
Re: Taylor series cosine function help please!
Programming
Software Development
12 Years Ago
by deceptikon
…1; while (x > 1) result *= x--; return result; } double
cosine
(double x) { double result = 0; int i; for (i = 0… &a, &b) == 2) { double cosa =
cosine
(a); double cosb =
cosine
(b); printf("cos(a) = %f\ncos(b) = %…
Re: Calculating Cosine without Using Math.cos
Programming
Software Development
15 Years Ago
by leoeroy
The formula for
Cosine
in my java book is cos x = 1 - x2/2! + x4/4! - x6/6! + . . . x2 is x to the power of 2 x4 is x to the power of 4 x6 is x to the power of 6 ! means factorial
Re: Calculating Cosine without Using Math.cos
Programming
Software Development
15 Years Ago
by leoeroy
I'm not following, what do you mean? The only problem with this program is the
cosine
formula.
Re: Calculating Cosine without Using Math.cos
Programming
Software Development
15 Years Ago
by stevelg
… plus the current calculated term in the loop, but the
Cosine
formula requires a total of such terms. You need to…
Re: Calculating Cosine without Using Math.cos
Programming
Software Development
15 Years Ago
by stevelg
… subtract the degrees value from it. The value of the
cosine
will be just the result collected in the power series…
Re: Calculating Cosine without Using Math.cos
Programming
Software Development
15 Years Ago
by leoeroy
[CODE]import java.util.*; class
Cosine
{ public static void main(String[] args){ int degrees = 0; Scanner …
calculating the sine cosine and tangent in C++
Programming
Software Development
15 Years Ago
by phpangel
hi guyz, i want to write a program that will find the (sine,
cosine
and tangent) of adding and subtracting two variables using inheritance and polymorphism concepts. anybody plz help? appreciate the answer:)
taylor series cosine
Programming
Software Development
14 Years Ago
by tKc
…;= 0.0001) break; else cos += temp; } cout << "
Cosine
of Angle is: " << cos << endl…
Discrete Cosine Transform (DCT) Formula
Programming
Software Development
13 Years Ago
by sandz24
Can anyone please explain to me how to compute DCT? I'm finding it hard to understand it.   I attached the formulas the Discrete
Cosine
Transform (DCT) and it's Inverse-DCT.
Taylor series cosine function help please!
Programming
Software Development
12 Years Ago
by blindislands
…, &x)==1) { answer=(x*PI)/180; } printf("The
cosine
of %d is %d.\n", x, answer); } **And lastly…
Finding approximations of sine and cosine with given value theta in degrees
Programming
Software Development
10 Years Ago
by satroan
… to write a code that finds approximations of sine and
cosine
using the equations below with a given value of theta…
How to move a ball along a sin or cosine path?
Programming
9 Years Ago
by Elliander_1
… to get the ball to move in simple sin and
cosine
paths that can be set back to start at the…
Re: Cosine and Sine Simplification
Programming
Software Development
14 Years Ago
by Adak
Without seeing the code, it's hard to make decent suggestions on how to optimize it. Can you post it, and be more detailed about the +/- error that is acceptable? I'm not clear about what has you stumped either, about creating a look up table. It's a 2D array (frequently). Your program can get precomputed/preloaded values by just referring to the …
Re: Cosine and Sine Simplification
Programming
Software Development
14 Years Ago
by fussballer
Thanks Adak, The angle is given in radians and the tolerance is (+/-0.05 rad). I am using it for the FFT Function, I posted in my other post about the malloc function, and I am using it for processor on a development board. How would I fill the array though? It would be really long to fill it manually, unless of course I use the sin() function …
Re: Cosine and Sine Simplification
Programming
Software Development
14 Years Ago
by iamthwee
you might want to read:- [url]http://lab.polygonal.de/2007/07/18/fast-and-accurate-sinecosine-approximation/[/url]
Re: Cosine and Sine Simplification
Programming
Software Development
14 Years Ago
by WaltP
A lookup table is a list of values. You define the array and it's values at compile time: [CODE]float sinLookup[] = { val1, val2, val3, ... };[/CODE] Each entry corresponds to one angle you want available. Get the angle, use it as an index into the array to get the sine. Of course you need to figure out how to take the angle and convert it …
Re: Cosine and Sine Simplification
Programming
Software Development
14 Years Ago
by Adak
[QUOTE=fussballer;1397584]Thanks Adak, The angle is given in radians and the tolerance is (+/-0.05 rad). I am using it for the FFT Function, I posted in my other post about the malloc function, and I am using it for processor on a development board. How would I fill the array though? It would be really long to fill it manually, unless of course…
Re: cosine similarity
Programming
Software Development
14 Years Ago
by stephen84s
[QUOTE]can anyone provide with java code for performing text similarity [/QUOTE] No, not even a hint until you show us what you tried.
1
2
3
8
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC