CAS definition gives different result

-Loco- shared this problem 7 years ago
Answered

Definition:

    Folge[ (k - 8 (k >10) ) * ( 1 + 4 (k >10) ) , k, 1, 18]

{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 50}
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 22, 24, 26, 28, 30, 32, 34}

    [code]GeoGebra 5.0.128.0-3D (19 June 2015)

    Java: 1.7.0_40


    OS: Windows 7

    Architecture: x86 / x86

    Heap: 247MB

    CAS: Giac/JNI

37133c1c797a31080071531c473e8ae0

Files: CAS.png

Comments (1)

photo
1

Try

    Sequence[(k - 8If[k > 10, 1, 0]) (1 + 4If[k > 10, 1, 0]), k, 1, 18]


It's deliberate that in the CAS

    8(k > 10)

becomes

    8k > 80

© 2022 International GeoGebra Institute