Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 369 results for
theorem
- Page 1
Find something wrong on a Theorem
Programming
Computer Science
16 Years Ago
by ming97
… help me to find something wrong on the following
theorem
:[/B] [B]
THEOREM
2 :[/B] if A and B are WSO…prove by induction on i [B]Base Step.[/B] From
Theorem
3, the H(2pow0 +1) circuit is WSO(2pow0 …1) with depth 2j+1 and fan out 2. From
theorem
3, H(2powj+1 +1) is WSO(2powj+1 …j+1)=H(2powj+1 +1) * HD(j), from
Theorem
2, HD(j+1) is WSO(2powj+2, j+1…
Re: Coding the Separating Axis Theorem
Programming
Software Development
15 Years Ago
by VernonDozier
… a lot of math involved. If you refer to a
theorem
, you should link it: [url]http://en.wikipedia.org/wiki… the math in Java (i.e. do you understand the
theorem
and know how to use it successfully, but you just… it in Java)? If it's a question on the
theorem
itself, a math forum might be better. If it's…
Pythagorean Theorem Calculator
Programming
Software Development
16 Years Ago
by Scuppery
If you are on school and you are taking algebra like me or just want to find the missing length of one side of the triangle than this program should help you out. Pythagorean
Theorem
Calculator is great and extremely essay to use thanks to this little program I pass my final exam.
Coding the Separating Axis Theorem
Programming
Software Development
15 Years Ago
by Cheesy74
…'m writing a collision algorithm based on the Separating Axis
Theorem
that works like so for each side: - Gets the separating…
Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by koolman123
…,I was trying to make a code for the Pythagorean
theorem
, and here is the start of the code (of course…
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by AmerJamil
any 1 has solution for it:, In the triangle Pythagoras
theorem
is used to find out the length of any in …
Can someone do a example maths with nyquist theorem ?
Hardware and Software
Networking
13 Years Ago
by silvercats
what is nyquist
theorem
?can someone do an example with using that?
Re: Find something wrong on a Theorem
Programming
Computer Science
16 Years Ago
by ithelp
Is this your reaserch topic or homework ?
Re: Find something wrong on a Theorem
Programming
Computer Science
16 Years Ago
by ming97
My Homework
Re: Find something wrong on a Theorem
Programming
Computer Science
16 Years Ago
by Rashakil Fol
Not unless you explain what "H" or "HD" or "WSO" or "[;g(n-1)]" are supposed to me.
Re: Find something wrong on a Theorem
Programming
Computer Science
16 Years Ago
by ming97
H and HD=dept size optimal; WSO= Waist-Size Optimal, [;g(n-1)]= [lg(n-1)]
Re: Pythagorean Theorem Calculator
Programming
Software Development
16 Years Ago
by AceofSpades19
Why did you import math near the middle of the code instead of the beginning?
Re: Pythagorean Theorem Calculator
Programming
Software Development
16 Years Ago
by Scuppery
Good question and I am glad you asked. Ok before I go on to explaining why I used there you must know that import math * could have been used anywhere in the code before the three functions(AnB, CnA, CnB). Now the reason why I used there, ok if you look at the code you will notice that everything before import math * statement is the menu of the…
Re: Pythagorean Theorem Calculator
Programming
Software Development
16 Years Ago
by sneekula
The recommended coding style for Python is: Do your imports Define your functions and/or classes Do the main code The bare minimum: Define your functions before you use them in your main code
Re: Pythagorean Theorem Calculator
Programming
Software Development
16 Years Ago
by Scuppery
Very true that’s the recommended style for coding in python. However, as you start to learn a programming language you will see that many things can change and one of those is the style in which you code the programs. Thus, once you have learn the language you can give it your own little spice even thought that’s not what it is recommended. The …
Re: Pythagorean Theorem Calculator
Programming
Software Development
16 Years Ago
by teddies
"\n" is your friend.
Re: Coding the Separating Axis Theorem
Programming
Software Development
15 Years Ago
by Cheesy74
I'm still trying to figure this out. I'm fairly certain that dot products of the vectors involved are relevant in some way, but I can't figure out how to use them for testing.
Re: Pythagorean Theorem Calculator
Programming
Software Development
15 Years Ago
by saadbhatti
Write a program that will take a 3 digit number as an input, it will save the number in reverse order into a new integer variable. Editor: Open your own thread if you have a homework question!
Re: Pythagorean Theorem Calculator
Programming
Software Development
15 Years Ago
by hondros
Sorry, I didn't see how old this was... my bad :D
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by StuXYZ
Very sorry to tell you but the operator ^, which you use e.g. [icode]a2=a^2[/icode] is actually the XOR operator. ie. it compares the bits in the value and sets them according to the rule: [code] A B Out 0 0 0 1 0 1 0 1 1 1 1 0 [/code] Thus 1 ^ 2 == 3, 2^2 is 2, and 2^3 is 1. [You can check that by outputting a2,b2 etc. So what …
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by koolman123
thanks, it now compiles. But for some reason It now outputs (If I entered 6,4) "6^2 + 0^2 = 0^20! BTW I edited the code to: [CODE] #include <cmath> #include <iostream> #include <complex> #include <valarray> #include <stdio.h> using namespace std; double pow(); double pow(); double sqrt(); double a;…
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by aviavyne
[QUOTE=;][/QUOTE] It is a good practice to not use the system("pause"), the reason is that this will only work on a windows, and if you take it to another computer it won't work. Try using a fflush(stdin); followed by cin.get();
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by StuXYZ
That was the reason I wanted you to put an output after EVERY statement. You have not yet understood the ordering issue in a program. For example, consider the variable c2. First it is created on line 20, It is assigned the value pow(b,2). However, at that point b could be ANYTHING. That is because it had not been assigned a value YET. Thus c2 can…
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by koolman123
thanks, I got it to work to find a, b, and c
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by WaltP
[QUOTE=aviavyne;]It is a good practice to not use the system("pause"), the reason is that this will only work on a windows, and if you take it to another computer it won't work. Try using a fflush(stdin); followed by cin.get();[/QUOTE] It's also a bad practice to use [icode]fflush(stdin)[/icode] because it's a legal operation -- you …
Re: Whats wrong with this Pythagorean theorem
Programming
Software Development
14 Years Ago
by Fbody
You don't need conio.h, there is almost never an occasion to use that [B]non-standard[/B] header. [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Also, this isn't your thread, start your own.[/URL]
Re: Can someone do a example maths with nyquist theorem ?
Hardware and Software
Networking
13 Years Ago
by Cross213
[URL="http://www.google.co.za/url?sa=t&source=web&cd=1&sqi=2&ved=0CBcQFjAA&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FNyquist%25E2%2580%2593Shannon_sampling_theorem&rct=j&q=nyquist%20theorem&ei=4kZVTpekPKPd4QScrOzEBw&usg=AFQjCNGtVaD-A1E-x5y9vbt32Y6uCRYn9w&cad=rja"]http://www.google.co.za/url?sa=t&…
How do I write a program in Python for this problem?
Programming
Software Development
12 Years Ago
by alexamicaa
…! Best answer if you write the program! Central Limit
Theorem
I Goal Write a python program that will use your… Monte Carlo algorithm to demonstrate the central limit
theorem
. Recall: The central limit
theorem
states that if s = ∑j=1 N … a mean and standard deviation expected from the central limit
theorem
for that value of M. 4. make plots for…
Upper and Lower bound of recursive functions
Programming
Computer Science
14 Years Ago
by ambageo
…,so I would appreciate some help. I used the Master
Theorem
on the second function and the result is T(n… the third by using the Master
Theorem
.I'm not even sure whether the Master
Theorem
can apply to those two cases…
plz any one help me to solve this problem in c++
Programming
Software Development
17 Years Ago
by jowereya
… plzzzzzzzzzzzzzzzzzzzzz helpe me >>> Problem 1: Fermat’s
Theorem
Program: fermat.cpp Input: fermat.in Output: fermat.out Description… years later that no one other than Euler proved this
theorem
. To illustrate, each of the following primes can be expressed…
1
2
3
7
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