Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
sin
- Page 1
"sin" function question
Programming
Software Development
15 Years Ago
by iammfa
…tried practice "library functions" especially "
sin
" function, I wrote this trivial program to…answer like calculator..? This is my code: [CODE]//calculate
sin
angle | library functions #include <iostream> #…"; cin >> angle; answer =
sin
(angle); cout << "
sin
" << angle << …
Re: "sin" function question
Programming
Software Development
15 Years Ago
by Stefano Mtangoo
…; using namespace std; #define PI 3.14 int main(){ //calculate
sin
angle | library functions double angle, angle_rad, answer; cout <<… >> angle; angle_rad = PI*angle/180; answer =
sin
(angle_rad); cout << "
sin
" << angle << "…
sin function
Programming
Software Development
17 Years Ago
by w2s
… an a equation instead of the function of
sin
in cmath libry. "the equation is like this Tn = (…
sin x expansion
Programming
Software Development
11 Years Ago
by CHETNA_1
Write a C++ program to print out the value of
sin
(x) or cos(x) depending on a user input (1 =
sin
, 2 = cos)and continue the expansion until successive terms differ from each other by less than 0.0001 (in terms of absolute value). Report how many terms are necessary.
sin parabola with straight lines
Programming
Software Development
15 Years Ago
by lithuanian
… of my weak knowledge. I need to draw half of
sin
parabola with straight lines . Like this [url]http://www.mif…
Re: sin, cos, tan
Programming
Software Development
15 Years Ago
by mrnutty
Sin
(x) = x - x^3/3! + x^5/5! + x^7/…^2/2! + x^4/4! - x^6/6! ... Cos(x) =
Sin
( x - 90 ) ; //assuming x is in degrees Tan(x…) =
Sin
(X)/cos(X) "!" means factorial. for example to …calculate Sinus you can do this : [code] //
Sin
(x) = x - x^3/3! + x^5/5! + x^7…
Re: sin, cos, tan
Programming
Software Development
15 Years Ago
by ShawnCplus
… number is the value of
sin
(1) so he's essentially getting
sin
(x) by doing
sin
(1)*x which is quite wrong…
Re: sin, cos, tan
Programming
Software Development
15 Years Ago
by alexa868
…] #include<iostream> #include <stdio.h> #define
sin
0.017452406437283512819418978516316 using namespace std; int main() { int valor; long…: "<<endl; cin>>value; seno=value*
sin
; cout<<"Sinus of "<<value…
Re: sin, cos, tan
Programming
Software Development
15 Years Ago
by mrnutty
… trying to mislead OP?[/QUOTE] Oops the sign must alternate,
Sin
(x) = x - x^3/3! + x^5/5! - x^7…/7! + x^9/9! ... [code] //
Sin
(x) = x - x^3/3! + x^5/5! - x^7…
Re: sin, cos, tan
Programming
Software Development
15 Years Ago
by nezachem
[QUOTE=firstPerson;1104661]
Sin
(x) = x - x^3/3! + x^5/5! + x^7/7! ... [/QUOTE] Just wondering: are you intentionally trying to mislead OP?
how to get the al information from the brackets of each sin()
Programming
Software Development
13 Years Ago
by pradeepreddy
…code to get all information with in brackets of each
sin
() ,which i would like to give as my …exactly, for example i write "
sin
(90*2)+
sin
(60)+
sin
(60+(75*2))+
sin
(50)+
sin
(20)" in textbox i need …To TextBox1.Text.Length - 1 startPos = TextBox1.Text.IndexOf("
sin
(", j) + 4 For i As Integer = startPos To…
To find the Sin value , give me a small support
Programming
Software Development
16 Years Ago
by vijaysoft1
I have a program to find the [B]
Sin
[/B] value of a given value(in radian) .…n"; cout<<
sin
(x)<<"\n"; fabs(s-(
sin
(x))); n=2; while(fabs…(s-
sin
(x))>0.0001 ) { s… term*f; n=n+2; } cout<<"
Sin
"<<k<<"="<<…
Re: To find the Sin value , give me a small support
Programming
Software Development
16 Years Ago
by tux4life
You can use the [ICODE]
sin
[/ICODE] function from the C++ library ... (Look [URL="http://www.cplusplus.com/reference/clibrary/cmath/
sin
/"]here[/URL] for a reference)
Re: To find the Sin value , give me a small support
Programming
Software Development
16 Years Ago
by vijaysoft1
Hi friends please help me to find
sin
value of user input ( in radian) without using
sin
() from math.h . please
Re: To find the Sin value , give me a small support
Programming
Software Development
16 Years Ago
by siddhant3s
… problem is concerned sine can be easily calculated by the
sin
() function in cmath. It takes radian as its measure. Tux…
Drawing sin(x)/x graphic into PictureBox in animation mode by timer component.
Programming
Software Development
14 Years Ago
by Dasharnb777
…scaleX, scaleY); gr.ResetClip(); float lastY = (float)Math.
Sin
(0); float y = lastY; Pen p = new Pen…(picBoxTopLeft), picBoxTopLeftm1, size, CopyPixelOperation.SourceCopy); y = (float)Math.
Sin
(x); gr.DrawLine(p, -stepX, lastY, 0, y);…
How To know the information present in the parenthesis of sin()
Programming
Software Development
13 Years Ago
by pradeepreddy
… i what to get all information within the parenthesis of
Sin
(). for example , i have created one one textbox in my…. i wanted users to enter some trigonometric expresiions like "
sin
(90+(25+25))" for that i what all the… information present with in the parenthesis of
sin
() can anyone give the code to help me thanks in…
Re: How To know the information present in the parenthesis of sin()
Programming
Software Development
13 Years Ago
by pradeepreddy
… String) As String Dim startPos As Integer = somestring.IndexOf("
sin
(") + 4 Dim parenCount As Integer = 1 Dim innerLen As… Function the above code is when textbox has only one
sin
() function,how to get if more than one…
Float truncation losing accuracy in custom sin
Programming
Software Development
11 Years Ago
by chase.lewis.3114
… ~2E-9 error, plenty for floats for calculating
sin
after reducing the range of
sin
(x/(2*pi)) to [0,0.25… seem to have that issue and match up with double
sin
(x) for values into 7 sigfigs. I'm curious how…
How to move a ball along a sin or cosine path?
Programming
9 Years Ago
by Elliander_1
… am trying to get an object to move along a
sin
path in JavaFX. I found a few ways of generating… the
sin
graph, but each of these used extra features and just… other way to get the ball to move in simple
sin
and cosine paths that can be set back to start…
Draw sin curve w/ user input, how to code sin()?
Programming
Software Development
20 Years Ago
by Reagan
… (count = 0; count<=m_iSample; ++count) { double iSinValue=
sin
(count * PI);//do the
sin
calculation int iFinalSinValue=iSinValue * 200;//convert result so…
Re: Drawing sin(x)/x graphic into PictureBox in animation mode by timer component.
Programming
Software Development
14 Years Ago
by ddanbe
Hi Dasharnb777, welcome! Your code draws
sin
(x) not
sin
(x)/x. Remember, to avoid divide by zero. Did you have a look at this snippet? [url]http://www.daniweb.com/code/snippet217204.html[/url]
Re: How To know the information present in the parenthesis of sin()
Programming
Software Development
13 Years Ago
by pradeepreddy
if user enters "
sin
(90+(25*2))+
sin
(45+(25*2))" how can i get "90+(25*2)" and "45+(25*2)" please help me.thank you for your reply
Re: How to move a ball along a sin or cosine path?
Programming
9 Years Ago
by Elliander_1
I made progress with cubics. The ball follows the
sin
wave path and starts over after. However, I can't … don't know how to get the proportions of the
sin
wave to reflect an actual equation. Pane p = new Pane…
Re: Draw sin curve w/ user input, how to code sin()?
Programming
Software Development
20 Years Ago
by nvanevski
Ok, bit by bit : y=f(x) is the curve. In our case, f is
sin
(), y is iSinValue, which makes x = count*PI. What's not clear?
how to Calculate Sin(x)
Programming
Software Development
17 Years Ago
by daniweb2013
I'm trying to calculate
sin
(x) without using #include <math.h> i need to use Maclaurin Series to calculate
sin
(x) with recursive process. thanks
Re: Simple sin() problem
Programming
Software Development
15 Years Ago
by amrith92
Your output is expected, and here's the [URL="http://www93.wolframalpha.com/input/?i=
sin
(3.141592653589793)"]result[/URL] of the same when I tried it on Wolfram's Online Math Engine. [URL="http://www.cplusplus.com/reference/clibrary/cmath/
sin
/"]Here[/URL]: The
sin
() function prototypes
Re: How To know the information present in the parenthesis of sin()
Programming
Software Development
13 Years Ago
by codeorder
How are these sins:D present in the TextBox? 1
sin
per each line?:D 2 or more sins per line?:D Or is it just a TextBox full of sins?:D with no hope of ever going to heaven.LMAOOO:D
Re: Float truncation losing accuracy in custom sin
Programming
Software Development
11 Years Ago
by mike_2000_17
… cosine you don't have to compute it through the
sin
/cos functions. And, at the end of the day, it…
Re: How to move a ball along a sin or cosine path?
Programming
9 Years Ago
by ddanbe
Why don't you just loop with x through the Math.
sin
function to get an y value?
1
2
3
17
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