cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Using a predefine function into a function

yfleury
1-Newbie

Using a predefine function into a function

Hi everyone,

I need to resolve a 1-variable equation into a function. For that, I want to use the function 'Trouver', which might be 'Find' in English, to resolve my equation.

The problem is that the function 'Trouver' is 'unknown' when I use it into my own function.

'Soit' means 'Suppose that'.

Does anyone as an idea of what's wrong in my function ?

TIA

4 REPLIES 4
LucMeekes
23-Emerald III
(To:yfleury)

Mathcad does not know the functions Trouver() or repartition(), nor the term or keyword Soit.

What is repartition() supposed to do?

It works like this:

That is to say: will find if the Mathcad built-in root can find it...

Success!

Luc

Thank you for your answer (again) Luc !

Repartition is a function that I coded, it calculate the cumulative density function of a pdf.

Also, Soit and Trouver are 2 french keyword that we can use like that :

It almost works now, just a few things to handle before everything is ok.

Thanks again Luc!

Yvan

LucMeekes
23-Emerald III
(To:yfleury)

Ah, I see. 'Soit' is in English the 'Given' statement that is used to start a so-called 'Solve-block'.

You cannot use 'Soit' (='Given') in a (user defined) function, but you can define the output of a solve-block to be a function.

Bonne chance!
Luc

I guess these few lines should do the job:

Top Tags