> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Example 23: Ray Fan User Analysis

Ex 23: Using a batch ray trace, a Ray Fan analysis is generated via both the native OpticStudio code as well as manually via the IBatchRayTrace interface.  The results, including proper scaling and execution time, are displayed for comparison purposes.

```text theme={null}
Input: 		Sequential\Objectives\Double Gauss 28 degree field.zos

Output:		Graph (Matlab, Python)
            API\e23_ray_fan_native_manual_comparison.txt (C++, C#)
```

[C#](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_cs)

[C++](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_cpp)

[Matlab](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_m)

[Python](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_py)
