drawing modulus function

LS9988 shared this question 5 years ago
Answered

I tried to input f(x)=abs(x)+k, a window jumped up and said that the input is invalid and k is an undefined variable. I am just wondering what's the correct way to input that modulus function. Thank you. :D

Comments (5)

photo
1

Hi,

If you want to have a variable 'k', you have to use a slider (2nd icon from right on toolbar). By default it will be named 'a', but you can change that to'k'. You must define 'k' first, then input your function. Otherwise, your syntax is fine. (If you replace k by a number, you should have no problem, either.)

K.

photo
1

Probably you don't have the last version of GeoGebra -> goto http://www.geogebra.org/cms...

In v.4.4 every time you type an equation or expression containing a variable that hasn't been previously defined, GeoGebra asks if you want to create a slider for it.

You get an Invalid input warning only if you refused the creation of the slider.

photo
1

Oh - I'd missed that info! Too used to creating the slider first! Apologies for giving out-of-date advice. Thanks mathmum

photo
1

Too used to creating the slider first!

I do the same :smiley_cat: but just wanted to remember the new features, since users sometimes are stuck on older versions! I just hooked in my comment to yours :smiley_cat:

photo
1

Thank you all so much. :P

© 2019 International GeoGebra Institute