# Question:finding functions of specific argument

## Question:finding functions of specific argument

Maple 2020

Given an expression, I want to obtain list of all functions in it, that contains as argument, anywhere another function.

I can do this now using 2 steps. I was wondering if there is a way to do it in one call.

Here is an example.

`expr:=sin(x)+ln(abs(x))+ln(x+1/sqrt(abs(x+3)))+ln(x^3);`

The goal is to find all ln functions, with abs inside them. Now, I do this

```restart;
expr:=sin(x)+ln(abs(x))+ln(x+1/sqrt(abs(x+3)))+ln(x^3);
lis:=indets(expr,'specfunc(anything,ln)');
select(Z->has(Z,abs),lis)
```

I could not find a way to do it in one call, If I do this

`indets(expr,'specfunc(abs(anything),ln)');`

it only finds

Which overlooked the other one, since abs there is elsewhere in side ln.

I looked at help Definition of a Structured Type in Maple but do not know yet if there is an option there to do this.

Is it possible to do this on one call?  Just wondering, that is all. The above works OK for me now.

Maple 2020.2

﻿