578 Topics

Member Avatar for
Member Avatar for PRINCE01

I need instance method(s) within the class am writing that convert from any base to base 10 & vice versa WIThOUT USING ANY LIBRARY ROUTINE. //this is what i have so far private int DecimalToBinary(int Decimal, int BaseNumber) { int Reminder; do { Reminder = Decimal % BaseNumber; } while …

Member Avatar for PRINCE01
0
317
Member Avatar for pateldeep454

[COLOR="Red"] This is my assignment: [/COLOR] The field of calculus is largely concerned with the concepts of the derivative and the integral of functions. Derivatives and integrals are closely related because they "undo" or reverse one another. If the derivative of a function is taken, a new function is obtained …

Member Avatar for javaAddict
-1
756
Member Avatar for esy928

Greetings! I'm almost finished in creating a geometry wars like game (except that you cant move =P ). For the last few days I've been stuck doing the diagonal movement of the bullets. I wish someone could help me =D here's the constructor of the bullet class x & y …

Member Avatar for esy928
0
1K
Member Avatar for Nerathas

Hello, I have writted a prog that generates the values & triangleOf Pascale. But the thing i cannot seem to find, is[B] how to get rid of the Console.Writlines in the middle of my code[/B] (where the values get calculated). I am using a 1 dimensional array for this insteed …

Member Avatar for ddanbe
0
113
Member Avatar for fabio533

I Got 2 tables: 'Standby' and 'Usage' [COLOR="Red"]Standby[/COLOR] Table got this fields: [COLOR="Red"]PartNº[/COLOR] (equipment id); [COLOR="Red"]Area [/COLOR](physical location); [COLOR="Red"]Stock1[/COLOR] (Nº Total of equipments); [COLOR="Red"]Usage[/COLOR] table got this fields: [COLOR="Red"]Quant_Used[/COLOR] (The times that the equipement is taken from Standby); [COLOR="Red"]Quant_Received[/COLOR] (The times that the equipement is restored to Standby); [COLOR="Red"]PartNº[/COLOR] (foreign …

0
90
Member Avatar for navaidstech

Just when I thought I was comfortable with SQL queries, another one popped up that I can't get around with.... I'm ALMOST there but not quite. Here is the situation... I'm dealing with two tables [B]PoolTeams[/B] and [B]PlayerStats[/B] The PoolTeams table has two columns: [B]PoolTeamID[/B] and [B]TeamName[/B] The PlayerStats table …

Member Avatar for navaidstech
0
200
Member Avatar for Gribouillis

This snippet defines a class LebsegueSet which instances represent sets of real numbers, namely finite unions of intervals. Set theoretical, topological and measure theoretical operations are implemented in pure python. Use freely and enjoy !

1
248
Member Avatar for mingas

Hi forum! I have to find the solution of this system of linear equations: 2x+3y=2 4x+5y=9 I know out to solve the system with paper and a pencil:cool: However I don´t know the way to do this in C# code! Could you give me some tips? Best regards Eduardo

Member Avatar for mingas
0
206
Member Avatar for fallopiano

Here I have a simple range function that can use floats as steps or increments. In a time test (using Psyco 1.6, python 2.5, and a basic PC), the normal frange function was able to go up to 1,000,000 from 0, by .3 , and finish that in about 0.5929 …

Member Avatar for Gribouillis
0
564
Member Avatar for ppl154

i need some help on my pi approximation it's really slow. compile it and see for your self. i think my problem is with my math. it comes out with the wrong first few numbers. i'm trying to use gregory's formula or the advanced version of it.[CODE]#include <iostream> #include <conio.h> …

Member Avatar for Salem
0
133
Member Avatar for sidd.
Member Avatar for Geekitygeek
0
192
Member Avatar for gnarlyskim

As you can see I am new here. I found this site from googling a question about a getChoice() function , and I was able to learn how to implement the function in my project to fit my needs from the post. ([url]http://www.daniweb.com/forums/thread162456.html[/url]). Well anyways, I have more issues that …

Member Avatar for gnarlyskim
0
1K
Member Avatar for jballen87

I'm trying to create a program in C# that allows for arithmetic of Complex Numbers. Just adding, subtracting, multiplying and dividing. Anyone got any suggestions?

Member Avatar for ddanbe
0
850
Member Avatar for Cap'nKirk

Hi, I am trying to build a simple calculator to get x^y, I have found that the '^' symbol is not used in C# and I have to use 'Math.Pow' instead. I have a form with 2 text boxes for input, an rtf box for output and a button for …

Member Avatar for Cap'nKirk
0
374
Member Avatar for mp.nighthawk

[b]Split from - [url]http://www.daniweb.com/forums/thread256380.html[/url] [/b] Someone said [QUOTE]It requires 200 terms to approximate Pi to 2 decimal places.[/QUOTE] how many terms would it take to get to 6 decimal places? 600? or is it a increasing value? - C n00b [I]11111111 is 1 less then 100000000[/I]

Member Avatar for ddanbe
0
54
Member Avatar for ddanbe
Member Avatar for ddanbe
2
995
Member Avatar for songweaver

Hey guys, I am brand spanking new to C# and am not only wondering about the syntax, but also the logic of how to do this, my professor just threw us to the wolves with this problem and we haven't gone over any of the syntax or anything, I am …

Member Avatar for apegram
2
2K
Member Avatar for naveenreddy61

the code takes each character and stores where and how many times a roman numeral appears and the assess the integer. this is my first code im posting. anything to make the code better is most welcome. roman numeral refers to M=1000 D=500 C=100 L=50 X=10 V=5 I=1 and uses …

Member Avatar for WaltP
0
957
Member Avatar for ayeshawzd

how can i find value of cos without using math library of c# .......plz send me code example or formula by which it ia possible i thank full to u

Member Avatar for ayeshawzd
0
470
Member Avatar for NargalaX

Hey, I'm making a math bot, and when you type in your equation it converts the numbers to doubles right away. Except, when doing any equation with a decimal, the decimal is ignored. Example 2 + 2 = 4 (No decimals, it works fine.) 2.2 + 2 = 24 (Decimal …

Member Avatar for NargalaX
0
282
Member Avatar for vegaseat

This is an update of an earlier version. In this version the string containing the approximated pi value is created directly from the iteration of the generator. This way the program is simplified and can be used with Python2 and Python3 ...

1
568
Member Avatar for Nerathas

Hello, I have this program that simplifies a fraction by calculating the greatest common divisor. So the fraction 8/4 (largest common divisor = 4) 8/4 4/4 => result would be 2/1 (fraction simplified) My problem is my method calculated this greatest common divisor. But now that value has to be …

Member Avatar for ddanbe
0
169
Member Avatar for Chargerfan

how do i retrieve complex numbers (a + jb) so that just a appears in one textbox and just b appears in another textbox?

Member Avatar for privatevoid
0
99
Member Avatar for samarudge

Hi, What is the function/opperator to calculate a power with C# I tryed [code=c] powerof = anumber ^ anothernumber; [/code] and that clearly doesn't work (1^3 is 2, 2^3 is 1 etc.) How do I do it??? I looked under [icode]Math.[/icode] functions and there was nothing and I spent ages …

Member Avatar for ddanbe
1
179
Member Avatar for ddanbe

Whenever you hear the word recursion, factorials or Towers of Hanoi are never far away. Well here they get mentioned, because we are not going to talk about these guys at all! Iteration and recursion are in fact quite similar: they both loop until a certain condition is met. As …

2
3K
Member Avatar for Diamonddrake

I need to be able to take a point on an image and convert it into a point relative to a picturebox with the pictureSizeMode set to zoom here is the code that the picturebox uses to scale and center the image [CODE] Size size = this.image.Size; float num = …

Member Avatar for Diamonddrake
0
285
Member Avatar for rzhaley

im supposed to write a code that you prompt to enter 10 different grades then drop the minimum value, while computing the average of the remaining 9. I'm getting infinity as the answer when I run the program so I know my min is messed up, somewhere but i cant …

Member Avatar for Geekitygeek
0
226
Member Avatar for Mafia619

Hey, I've got an assignment from my computer teacher in school. I've got to make a program that displays the prime numbers in a range and also display the number of prime numbers that are present. And i'm only supposed to use the basic header files.....that means the program should …

Member Avatar for VernonDozier
0
307
Member Avatar for denizen08

[CODE]#include <cmath> long double NR(long double sample) { return (abs(f(sample)))<=1e-10 ? sample: NR( (sample - f(sample)/fp(sample))); } long double f(long double sample) { return 2.5*exp(-sample)-3*sin(sample); } long double fp(long double sample) { return -2.5*exp(-sample)-3*cos(sample); }[/CODE] I'm trying to write code for a Newton-Raphson algorithm. I have it in recursive form …

Member Avatar for denizen08
0
180
Member Avatar for Kruptein

Hi I'm trying to find a way to find the first avogadro cipher whose digital sum exceeds 100, I've come to: [code=python]#!/usr/bin/python def dig_sum(n): lst = list(str(n)) ln = len(lst) sm = 0 while(i < ln): sm += int(lst[i]) return sm def avo(i,j,k,c): k = j j = i + …

Member Avatar for Kruptein
0
281

The End.