Click here to Skip to main content
15,895,656 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: I want find intersection point between two ellipse or ellipse and circle, can someone please give me useful links or any suggestions. PinPopular
harold aptroot6-Jan-16 0:06
harold aptroot6-Jan-16 0:06 
GeneralRe: I want find intersection point between two ellipse or ellipse and circle, can someone please give me useful links or any suggestions. Pin
Member 113286206-Jan-16 1:33
Member 113286206-Jan-16 1:33 
GeneralRe: I want find intersection point between two ellipse or ellipse and circle, can someone please give me useful links or any suggestions. Pin
harold aptroot8-Jan-16 3:38
harold aptroot8-Jan-16 3:38 
QuestionProbability Pin
Member 122449725-Jan-16 0:18
Member 122449725-Jan-16 0:18 
AnswerRe: Probability Pin
Daniel Pfeffer5-Jan-16 0:30
professionalDaniel Pfeffer5-Jan-16 0:30 
AnswerRe: Probability Pin
Afzaal Ahmad Zeeshan5-Jan-16 0:39
professionalAfzaal Ahmad Zeeshan5-Jan-16 0:39 
QuestionConverting From Decimal to Custom Counting Definition Pin
BlueIshDan24-Dec-15 3:45
BlueIshDan24-Dec-15 3:45 
AnswerRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T24-Dec-15 5:44
mvePatrice T24-Dec-15 5:44 
Here is a simplified version of the first function.
VB
Public Function ConvertStringToDecimal(ByVal str As String, _
                                       ByVal def As String) As Variant
 
    ' ------------------------------------- '
    '           Parse Parameters.           '
    ' ------------------------------------- '
    If Len(str) = 0 Then: ConvertStringToDecimal = "No value has been entered.": Exit Function
    If Len(def) < 2 Then: ConvertStringToDecimal = "Number definition must have 2 or more characters.": Exit Function
    ' ------------------------------------- '

    ' ------------------------------------- '
    ' Variable Declaration & Initialization '
    ' ------------------------------------- '
    Dim Base As Integer: Base = Len(def)    ' - Length of Definition is the Base
    Dim LV As Integer: LV = Len(str)        ' - Length of Value
    Dim N As Variant: N = CDec(0)           ' - The sum of the calculations.
    Dim I As Integer                        ' - Increment.
    Dim P As Integer                        ' - Position of Value[i] in Reverse Definition.
    ' ------------------------------------- '

    ' Traverse through the characters(digits) of the string in
    ' an incremental order.
    For I = 1 To LV
        P = InStr(1, def, Mid(str, I, 1))
        if P = 0 then ConvertStringToDecimal = "Unknown digit.": Exit Function
       	N= N * Base + P - 1
    Next
 
    ' Return the calculated value.
    ConvertStringToDecimal = N

End Function

you should not prep the parameters because it prevent the use of space in definition and removing spaces in definition is changing the values of digits.
Patrice

“Everything should be made as simple as possible, but no simpler.” Albert Einstein

GeneralRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T24-Dec-15 5:57
mvePatrice T24-Dec-15 5:57 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
BlueIshDan24-Dec-15 5:59
BlueIshDan24-Dec-15 5:59 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
BlueIshDan24-Dec-15 6:02
BlueIshDan24-Dec-15 6:02 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T24-Dec-15 6:09
mvePatrice T24-Dec-15 6:09 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T24-Dec-15 13:51
mvePatrice T24-Dec-15 13:51 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
BlueIshDan29-Dec-15 0:21
BlueIshDan29-Dec-15 0:21 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T29-Dec-15 2:45
mvePatrice T29-Dec-15 2:45 
Questionwhat kind of algorithms we use to find minimum spanning tree Pin
Member 1211381321-Dec-15 5:39
Member 1211381321-Dec-15 5:39 
AnswerRe: what kind of algorithms we use to find minimum spanning tree Pin
Chris Losinger21-Dec-15 6:31
professionalChris Losinger21-Dec-15 6:31 
GeneralRe: what kind of algorithms we use to find minimum spanning tree Pin
harold aptroot21-Dec-15 6:57
harold aptroot21-Dec-15 6:57 
GeneralRe: what kind of algorithms we use to find minimum spanning tree Pin
Patrice T21-Dec-15 12:16
mvePatrice T21-Dec-15 12:16 
QuestionHow do I fix blinking or flashing web page in Chrome? (my project ASP.NET) Pin
ahasan nahid9-Dec-15 14:26
ahasan nahid9-Dec-15 14:26 
AnswerRe: How do I fix blinking or flashing web page in Chrome? (my project ASP.NET) Pin
Richard MacCutchan9-Dec-15 22:22
mveRichard MacCutchan9-Dec-15 22:22 
QuestionAlgorithm running time Pin
Lyuboslav Kakanakov4-Dec-15 5:13
Lyuboslav Kakanakov4-Dec-15 5:13 
AnswerRe: Algorithm running time Pin
Richard MacCutchan4-Dec-15 6:49
mveRichard MacCutchan4-Dec-15 6:49 
AnswerRe: Algorithm running time Pin
Patrice T4-Dec-15 10:17
mvePatrice T4-Dec-15 10:17 
AnswerRe: Algorithm running time Pin
Matthew Dennis5-Dec-15 22:09
sysadminMatthew Dennis5-Dec-15 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.