# Define function without Sec\[x\] , I want 1/Sin\[2x\]

**URL:** <https://community.wolfram.com/t/define-function-without-sec-x-i-want-1-sin-2x/2697>\
**Category:** Questions\
**Tags:** mathematica\
**Created:** [July 17, 2014, 4:55am UTC](https://community.wolfram.com/t/define-function-without-sec-x-i-want-1-sin-2x/2697 "2014-07-17T04:55:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gammonsmurf](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gammonsmurf/32/24186_2.png) [@gammonsmurf](https://community.wolfram.com/u/gammonsmurf)\
**Post date:** [July 17, 2014, 4:55am UTC](https://community.wolfram.com/t/define-function-without-sec-x-i-want-1-sin-2x/2697/1 "2014-07-17T04:55:07Z")

</div>

`f[x_] := (E^(3 x + 2))/Sin[2*x]`  
gives

```
E^(2 + 3 x) Csc[2 x]

```

I dont want that

---

<div class="post-metadata">

**Author:** ![isaacabraham](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/isaacabraham/32/24597_2.png) [@isaacabraham](https://community.wolfram.com/u/isaacabraham)\
**Post date:** [July 17, 2014, 6:12am UTC](https://community.wolfram.com/t/define-function-without-sec-x-i-want-1-sin-2x/2697/2 "2014-07-17T06:12:28Z")

</div>

Hi, I would define it as follows.

```
f[x_] := (E^(3 x + 2))HoldForm[(1/Sin[2*x])]

```

If you type in f[x] , it returns e^(3x+2) (1/Sin[2x])

In order to evaluate it at any time,

```
ReleaseHold[f[x]] /. x -> Pi/4

```

---

<div class="post-metadata">

**Author:** ![nma](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nma](https://community.wolfram.com/u/nma)\
**Post date:** [July 17, 2014, 7:17am UTC](https://community.wolfram.com/t/define-function-without-sec-x-i-want-1-sin-2x/2697/3 "2014-07-17T07:17:12Z")

</div>

How about using `Format`

```
     Format[f[x_]] := (E^(3 x + 2))/Sin[2*x] /. Csc[z__] :> HoldForm[1/Sin[z]]
     r = f[4 x]

```

 ![2552Untitled.png](https://global.discourse-cdn.com/wolfram/original/3X/3/e/3e59ed2b0e27b81b70265728372a4becc2a9407d.png)

Then

```
     r /. x -> Pi/3
    (* (2*E^(2 + 4*Pi))/Sqrt[3] *)

    r = f[1]
    (* E^5 1/Sin[2] *)

    N[%]
    (* 163.217 *)

```
